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

How many white sweatshirt were sold?
How many yellow sweatshirt were sold?

I can not figure out how to do this problem.

Write equations for the total number sold and the total sales dollars. This will let you solve for the two unknown amounts sold, W and Y.

W + Y = 35
9.95 W + 12.50 Y = 389.05
Substitute 35-Y for W in the second equation and solve for Y.

9.95 (35 - Y) + 12.50 Y = 389.05

2.55 Y = 389.05 - 348.25 = 40.80
Y = ?

To solve this problem, we need to set up a system of equations based on the given information.

Let's say x represents the number of white sweatshirts sold, and y represents the number of yellow sweatshirts sold.

Based on the given information, we can set up two equations:

1) The total number of sweatshirts sold is 35:
x + y = 35

2) The total value of the sweatshirts sold is $389.05:
9.95x + 12.50y = 389.05

We now have a system of equations. To solve it, we can use the method of substitution or elimination. Let's use the method of substitution:

From equation 1, we can solve for x in terms of y:
x = 35 - y

Now, substitute this value of x into equation 2:
9.95(35 - y) + 12.50y = 389.05

Using distributive property:
348.25 - 9.95y + 12.50y = 389.05

Combine like terms:
2.55y = 40.80

Divide both sides by 2.55:
y = 16

Now substitute this value of y back into equation 1:
x + 16 = 35

Subtract 16 from both sides:
x = 19

Therefore, 19 white sweatshirts and 16 yellow sweatshirts were sold.

So, the answers to your questions are:
- The number of white sweatshirts sold is 19.
- The number of yellow sweatshirts sold is 16.