A shop sells a party hat at x dollars and a mask at y dollars. On a particular morning, 10 hats and 20 masks were sold for $30. In the afternoon, 8 hats and 10 masks were sold for $18. What is the cost of one hat and one mask? Let Hat be "H" and Mask be "M"