Alexa is going to a carnival that has games and rides. Each game costs $3 and each ride costs $4. Alexa spent $54 altogether on 15 games and rides. Determine the number of games Alexa played and the number of rides Alexa went on.