Pedro bought 7 tickets to a basketball game. He paid a total of $154. Enter an equation, using x as your variable, to determine whether each ticket cost $22 or $25. Then enter the cost of the ticket.