Tony purchased a total of 18 bikes and magazines.Each book costs $12.How many books and magazines did he buy for $240

(You must define you variables and show your equations)