Sydney is going to a carnival that has games and rides. Each game costs $1.25 and each ride costs $2.25. Sydney spent $24.25 altogether at the carnival and the number of rides she went on is 3 more than the number of games she played. Determine the number of games Sydney played and the number of rides Sydney went on.