Answer: Sam played 5 games and went on 8 rides
Explanation:
Let r represent the number of rides that Sam went on.
Let g represent the number of games that Sam played
the number of rides she went on is 3 more than the number of games she played. This means that
r = 3 + g
Each game costs 1$ and each ride costs $3.50. Sam spent $28.50 altogether at the carnival. This means that
3.5r + g = 28.50 - - - - - - -1
Substituting r = 3 + g into equation 1, it becomes
3.5(3+g) + g = 28.50
10.5 + 3.5g + g = 28.50
4.5g = 28.5 - 10.5
4.5g = 18
g = 18/4.5
g = 5
r = 3 + g = 3 + 5
r = 8