Rebekah and Mohammad have $125 saved up already with their clothing business. For every shirt they sell, they make $12 and for every hat they make $9. How many of each did they sell if they sold 22 pieces of clothing and their total saved at the end of the day is $350, including the savings they started with?