Find the price of a senior citizen ticket and the price of a child ticket.
Dan and Barry are selling cheesecakes and pizzas for a school fundraiser. Dan sold 8 cheesecakes and 6 pizzas for a total of $184. Barry sold 10 cheesecakes and 3 pizzas for a total of $140. What is the cost of 1 cheesecake and 1 pizza?