Kendra paid $7 for her admission ticket to the fair and bought 12 ride tickets. She spent a total of $31 on admission and ride tickets. Write and solve an equation to determine the cost of one ride ticket