Samuel spent~$\tfrac{1}{6}$~of his money and an additional $$$5$$ on a DVD. He then spent~$\tfrac{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? 
Overseas Competition->Knowledge Point->Number Theory Modules->Remainder Problems