PLEASE HELP!!! I WILL MARK BRAINLEST!!!

A shop sells a party hat at x dollars and a mask at y dollars. On a particular morning, 3 hats and 4 masks were sold for $27. In the afternoon, 3 hats and 6 masks were sold for $33. Find the cost of each hat and each mask.