Hailey bought two shirts and a pair of pants. Each shirt cost the same price. If the pants were $17.99 and she spent a total of $35.97, how much was the cost of each shirt?