How do you solve nash buys 37 candies for 20 cents each and richard sells him 52 candies for 15 cents each how much did nash spend altogether? express your answer in dollars