Frankie and Maria paid to get into the carnival, and they had to pay a certain amount per game. Frankie played 5 games and spent $15.50 altogether. Maria played 12 games and spent $26 altogether. How much does it cost to get into the carnival?