I was able to convert the informations to an equation, but I do not know what to do from there..
The equation was:
x+y=40
x= 3(y-4)
