Admission to the carnival is $10 plus $2 per ride. John spent $38 on admission and
rides. Write and solve an equation to find how many rides John went on.