At the fair Eric bought 6 snacks and 12 ride tickets. Each ride ticket costs $2 less than a snack. He spent a total of $30. If Eric spent a total of $30, what was the cost of each snack? Write an equation that can be used to find the cost of each snack. What was the cost of each snack