let x be the amount of panels that plant A produced and y the amount of panels that plant B produced. First we are told that plant A produced 2000 fewer panels tan plant B. This means that if we subtract 2000 from the amount that plant B produced, we would get the amount that plant A produced. This translates to the equation

which is equivalent to the equation

next, we will calculate the amount of defective panels per plant and then add them up. THis final quantity should be 660. We are told that 2% of plant A's production is defective and that 5% of plant B's production is defective. Recall that to calculate the x% of a number, we simply mulitply the number by x and divide it by 100. So we have that 2% of plant A's production would be

and the 5% of plant B's production would be

if we add this quantities, we get the equation

If we multiply both sides by 100, we get the equivalent equation

NOw, we want to solve this system of linear equations to find the values of x and y. MOre especifically, we want the value of y. Let us take the first equation, multiply it by 2 and then add it to the second equation, so we get

on the left we get

so, if we divide both sides by 7, we get

so plant B produced 10000 panels