One day a store sold 30 sweatshirts. White ones cost​ $9.95 and yellow ones cost $ 12.50. In​ all, ​$349.50 worth of sweatshirts were sold. How many of each color were​ sold?