You are buying 2 items so let's use two different variables to represent each:
p = number of tubes of paint
b = number of disposable brushes
cost = price per item × number of items
Equations from information given:
4p + 0.50b = 20 ← from the first 2 sentences
2p = b ← if there are twice as many brushes as paint tubes you need 2 times paint tubes to equal number of brushes
Solve the problem by using substitution... 1b equals 2p so replace b with that:
4p + 0.50(2p) = 20
4p + 1p = 20 ← 0.50 is half so half of 2p is 1p
5p = 20 ← combine like terms
p = 4 ← divide both sides of the equation by 5
Recall the equation 2p = b replace p with 4
2(4) = b
8 = b
ANSWER:
You purchased 4 tubes of paint and 8 disposable brushes.
Well think of it like this. lets say your teacher made you do this problem -48 - 10. I would just act like 48 is not an negative and add 10. After that I would put the negative back. So the answer would be -58. :P
At firt we should solve what is h(0)
h(0)=0^2+2
h(0)=2
So then you should take the h(0) answer to g(x) and the result is g(2)= -2-5=-7