Coco has a jar containing pennies and nickles. There is $9.20 worth of coins in the jar. If she could switch the number of pennies with the number of nickles, there would be $26.80 worth of coins in the jar. How many pennies and nickles are in the jar?

X pennies, and Y nickels.

Eq1: 1x + 5y = 920 cents.
Eq2: 5x + 1y = 2680 cents.

-5x - 25y = -4600
+5x + 1y = 2680
Sum: -24y = -1920
Y = 80 nickels.

In Eq1, replace Y with 80:
x + 5*80 = 920, X = 520 Pennies.

why did it become negatives?

To solve this problem, let's set up a system of equations.

Let's say the number of pennies in the jar is denoted by 'P', and the number of nickels is denoted by 'N'.

We know that the value of the coins in the jar is $9.20, so we can write the equation:
0.01P + 0.05N = 9.20 (since 1 penny is worth $0.01 and 1 nickel is worth $0.05)

We also know that if the number of pennies and nickels are switched, the value of the coins in the jar is $26.80. We can write the equation:
0.01N + 0.05P = 26.80

Now we have a system of two equations with two unknowns. We can solve it using any method we prefer (substitution, elimination, or matrices). Let's solve it using the substitution method:

From the first equation, solve for P in terms of N:
0.01P = 9.20 - 0.05N
P = (9.20 - 0.05N) / 0.01

Substitute this value of P in the second equation:
0.01N + 0.05((9.20 - 0.05N) / 0.01) = 26.80

Simplify and solve for N:
0.01N + 0.46 - 0.05N = 26.80
-0.04N = 26.80 - 0.46
-0.04N = 26.34
N = 26.34 / -0.04
N ≈ -658.5

Since we can't have a negative amount of nickels, this means there must be an error in the problem statement or the calculation. Please double-check the given values and equations.

ghg