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

w+y = 30

9.95w + 13.50y = 351.75

Now just solve for w and y