Final answer:
After subtracting the cost of the magazine from the total, we divide the remainder by the number of erasers to find that each eraser costs 4.
Step-by-step explanation:
We need to find out how much each eraser cost. John spent a total of 30. From that total, he spent 6 on a magazine. This means the money spent on erasers alone is 30 - 6 = 24. Since he bought six erasers, we can find the cost of each eraser by dividing the total cost of the erasers by the number of erasers. Therefore, each eraser cost 24 ÷ 6 = 4.