Each game costs $1.25 and each ride costs $2.75. A boy spent $20.25 all together at the carnival and the number of rides he went on is twice the number of games he played. Determine the number of games he played and the number of rides he went on.