One day a store sold 31 sweatshirts. White ones cost $11.95 and yellow ones cost $12.50. In all, $379.80 worth of sweatshirts were sold. How many of each color were sold?

1 answer

white ones ---- x
yellow ones ---- 31 - x

solve for x

11.95x + 12.50(31-x) = 379.80