On the quadratic trinomial of X, x square + PX + P can be decomposed into (x-1) (x + 6), and the value of P + 3q-2 can be obtained

On the quadratic trinomial of X, x square + PX + P can be decomposed into (x-1) (x + 6), and the value of P + 3q-2 can be obtained

Is it x square + PX + Q or x square + QX + P