say you had 300 of x and 300 of y and you needed to get 800 dollars from both x and y, if you sold x for 4$ and y for 2$ how many of x and y do need to sell

You would need to sell:

- 200 units of x (at $4 each) to make $800
- 400 units of y (at $2 each) to make $800

So, the total number of units you need to sell is:

- 200 units of x + 400 units of y = 600 units