The cost of an adult ticket is $12 and a child ticket is $9. Peter sold 50 adult
tickets and 18 child tickets. How much did Peter earn in tickets?