Charles bought 4 shirts that each cost the same amount and a pair of jeans that cost $27.99.
If he spent a total of $87.99, how much did each shirt cost?