Lynne bought 7 books about cats and 2 books about the solar system. She also bought 3 magazines. Each book cost 7andeachmagazinecostand each magazine costandeachmagazinecost4. How much did Lynne spend in all?