Question 1188021
let x = all of his money.
let c = number of chocolate bars.
let s = number of sweets.


you have 2 equations that need to be solved simultaneously.


they are:


5c = 2/5 * x
3c + 18s = 3/5 * x


multiply both sides of each equation by 5 to get rid of the factions and get:


25c = 2x
15c + 90s = 3x


multiply both sides of the first equation by 3 and multiply both sides of he second equation by 5 to get:


75c = 6x
75c + 450s = 15x


subtract the first equation from the second to get:


450s = 9x


solve for x to get:


x = 50s


since x is all the money he has, then he can buy 50 sweets with all  his money.


that's your solution.


let me know if you have any questions.


theo