Two student groups went to an amusement park on the same day. Group 1 bought 9 tickets and received a $120 discount. Group 2 bought 3 tickets and received a $30 discount. Both groups spent the same total amount of money on tickets. The price of each ticket was the same. What was the cost of each ticket?
