Grace is going to a carnival that has games and rides. Each game costs $1.50 and each ride costs $2.50. Grace spent $16.50 altogether at the carnival and the number of games she played is twice the number of rides she went on. Write and solve a system of equations that could be used to determine the number of games Grace played (g) and the number of rides Grace went on (r).