Mary bought 5 pairs of gloves and 2 hats for $95. Mary received a text from her friend Joanna ask her to buy 4 pairs of gloves and a hat. Mary told Joanna that the cost was $70. How much does each pair of gloves cost? How much does the hat cost?