a store sells sweaters for $40 each and jeans for $20 maria buys 5 pieces of clothing ( some jeams and some sweaters ) and pays $160, how many sweaters and how many jeans does she buy

sweaters --- x

jeans ------ y

x+y = 5

40x +20y = 160 or
2x + y = 8
subtract them:
x = 3
then y = 2

Maria bought 3 sweaters and 2 jeans

Thank you

To determine the number of sweaters and jeans that Maria buys, we can set up a system of equations based on the given information. Let's say Maria buys 'x' sweaters and 'y' jeans.

According to the information given, the cost of a sweater is $40 and the cost of a pair of jeans is $20. Maria buys a total of 5 pieces of clothing and pays $160. We can express this information mathematically as:

x + y = 5 (equation 1)
40x + 20y = 160 (equation 2)

To solve this system of equations, we can use the method of substitution or elimination. Let's use the substitution method to solve this system.

From equation 1, we can express 'x' in terms of 'y' by subtracting 'y' from both sides:

x = 5 - y

Now, substitute the value of 'x' in equation 2 with '5 - y':

40(5 - y) + 20y = 160
200 - 40y + 20y = 160
200 - 20y = 160
-20y = 160 - 200
-20y = -40
y = -40 / -20
y = 2

Substitute the value of 'y' back into equation 1 to find 'x':

x + 2 = 5
x = 5 - 2
x = 3

So, Maria buys 3 sweaters and 2 jeans.