Question 1185259

he have at first ${{{x}}}

Tom spent {{{1/6}}} of his money and another ${{{5}}} on a book. 

{{{x/6+5}}}
the remaining money is {{{x-(x/6+5)=(5 x)/6 - 5}}}


Then, he spent {{{2/5}}} of the remaining money and another ${{{12}}} on some food. 

{{{(2/5)((5 x)/6 - 5)+12=x/3 + 10}}}


He had ${{{24 left}}}. 

{{{x=x/6+5+x/3 + 10+24}}}
{{{x=78}}}

How much money did he have at first?

check:
{{{x/6=78/6=13}}}
 ${{{5}}} on a book
total spent: {{{13+5=18}}}

remaining money:{{{78-18=60}}}

he spent {{{2/5}}} of the remaining money which is ${{{(2/5)60=24}}} 
 another ${{{12}}} on some food

total spent: {{{13+5+24+12= 54}}}

deduct from {{{78}}}

{{{78-54=24}}} which confirms he had ${{{24 }}}left