Answer:
Let the number of courses that are worth 3 credits each be x and those worth 4 credits be y. With the given information, you can write the following equations:
x + y = 48
3x + 4y = 155
You can solve the above equations by method of elimination/substitution
x + y = 48 ⇒ x = 48 - y (Now, substitution this equation into 3x + 4y = 155)
3(48 - y) + 4y = 155
144 -3y + 4y = 155
y + 144 = 155
y = 11
Now plug this solution back into x = 48 - y
x = 48 - 11 = 37
Check work (by plugging the solutions back into the 3x + 4y and see if it's equal to 155):
3(37) + 4(11) = 155
Answer: There are 37 of the 3-credit course and 11 of the 4-credit course