Find the Values of m, p and q for which is equivilent to .

I don't know how to show this. I have Tried to expand the Question but i could not come to anything rational.

In this type of question do i use the quadratic formula?

If so then.

Line 1:

is equivilent to

Line 2:

is equivilent to

Line 3:

is equivilent to

This is where i am stuck.

I know to find the values for m, p and q. I need to do simutanious equations. But i do not know where to apply it. I also think that using the Quadratic formula is also incorrect.

Any help is appreciated. An explanation is even better.

Thank you for any help.