I believe you may have the order incorrect. If we were looking at g(f(x)) the answer would be 47. We would get this by sticking the 3 in for x in f(x) and solving, which would give us 48. We would then stick that answer in for x in the g(x), giving us 47.
In its current order the answer would be 28.
Part A
Distribute the one-half.
1.24g + 0.87m + 0.98z
Part B
(29.68 - x) + 14.45
Or simplified to 44.13 - x
Part C
a = number of times at the store
b = gloves' price
c = hat's price