I’m getting $47.82. So yes, there is enough money. The change would be $2.18.
This equation uses y and x so it cannot be factorised.
Let’s try the equation y^2 - 12y + 36 = 0
Look for two factors of 36 that add to -12.
This would be -6 and -6
(y - 6)(y - 6) = 0
(y - 6) must equal 0
y = 6
Step-by-step explanation:

The answer to this is 244
Do a proportion
40/100= 8/x
8 x 100= 800
Cross multiply and divide
800 divided by 40= 20
So answer is 20