Luis spent 1/6 of his money and an additional $5 on a pen. He then spent 2/5 of his remaining money and an additional $12 on a number of magazines. If he had $24 left, how much money did he have at first?

X = original amount

spending 1/6 th leaves 5/6 ths of the origianl

(5/6 x -5 ) 3/5 -12 = 24 ( spending 2/5ths leaves 3/5th s)

1/2x - 15 = 24

1/2 x = 39

x = 78 dollars originally