Final answer:
After subtracting the cost of the hat ($4.50) from the total cost ($18.00), the combined cost for the two shirts was $13.50. Dividing this by 2 gives the price of each shirt as $6.75.
Step-by-step explanation:
If John bought two shirts for the same price and a hat that cost $4.50, and the total cost of all the items was $18.00, then to find the price of each shirt, we must subtract the cost of the hat from the total cost. Therefore, the calculation goes as follows:
- Total cost of all items: $18.00
- Cost of the hat: $4.50
- Combined cost of the two shirts: $18.00 - $4.50 = $13.50
Since there are two shirts for the same price, we divide the combined cost of the shirts ($13.50) by 2 to find the price of each shirt:
Price of each shirt: $13.50 / 2 = $6.75
Hence, each shirt cost $6.75.