I spent $40.00 on a sweater and a shirt. The sweater cost $12.00 more than the shirt. How do I figure this out. I thought the answer was $28.00 but that is not right

40 - 12 = 28

28/2 = $14 cost of shirt

14 + 12 = $26 cost of sweater

x + y = 40

x = y + 12
Use substitution to plug the second equation into the first.
y + y + 12 = 40
2y + 12 = 40
2y = 28
y= 14
Plug y = 14 back into either top equation, x = 26

two eqtns....X+12=Y;AND X+Y=40......fromX+12=y thenX+X+12=40;2X+12=40 THEREFORE X=14....IF X=14 AND X+Y=40,THEN Y=26ANS...26DOLLARS FOR SWEATER.

To figure out the cost of the sweater and the shirt, you can set up a system of equations.

Let's assume the cost of the shirt is x dollars. According to the problem, the sweater costs $12.00 more than the shirt, which means the cost of the sweater is x + $12.00.

Now, we can set up the following equation based on the total amount spent:
x + (x + $12.00) = $40.00

By combining like terms:
2x + $12.00 = $40.00

Next, we can isolate the variable:
2x = $40.00 - $12.00
2x = $28.00

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

So, the cost of the shirt is $14.00. To find the cost of the sweater, you can substitute this value back into the equation:
Sweater = $14.00 + $12.00 = $26.00

Therefore, the sweater costs $26.00 and the shirt costs $14.00.