At a sale on winter clothing,Cody bought two pairs of gloves and four hats for $43.00. Tori bought two pairs of gloves and two hats for $30.00. Find the cost