At a sale on winter clothing, Cody bought two pairs of gloves and four hats for $38. Tori bought three pairs of gloves and five hats for $50. What were the prices for the gloves and hats?

Write two equations you can use to solve the problem. Use to represent the price for each pair of gloves and use h to represent the price for
each hat.