ernesto spent a total of 64$ for a pair of jeans and a shirt. the jeans cost 6$ more than the shirt. how much did the jeans cost?

Shirt cost = S

Jeans cost = J = S + 6
S + S + 6 = 2S + 6 = 64
2S = 58
S = 29
J = 35

Let x equal the cost of the jeans.

x + x - 6 = 64
2x - 6 + 6 = 64 + 6
2x = 70
x = 35

To check:
35 + 29 = 64

To find out how much the jeans cost, let's break down the information given in the question.

Let's assume the cost of the shirt is represented by 'x' dollars.

According to the information given, the cost of the jeans is $6 more than the shirt. Therefore, the cost of the jeans would be 'x + $6'.

Now, we know that the total cost of both the jeans and the shirt is $64.

So, we can set up the equation: x + (x + $6) = $64

Simplifying this equation, we have: 2x + $6 = $64

To isolate x, we subtract $6 from both sides of the equation:
2x = $64 - $6
2x = $58

Finally, divide both sides of the equation by 2 to solve for x:
x = $58 / 2
x = $29

Therefore, the cost of the jeans is x + $6, which is $29 + $6.

The jeans cost $35.