Piper and her friend Hunter are going to a carnival that has games and rides. Piper played 5 games and went on 7 rides and spent a total of $43.75. Hunter played 10 games and went on 2 rides and spent a total of $27.50. Determine the cost of each game and the cost of each ride.