The equations given are slightly wrong. By solving them we get wrong result.
Equations should be x2 + px + qr = 0 and x2 + qx + pr = 0.
Concept : Let a1 x2 + b1 x + c1 = 0 and a2 x2 + b2 x + c2 = 0.
Let

be the common root of the above equations.
By cross multiplication method, we get
2 / (b
1 c
2 – b
2 c
1) =

/ (c
1 a
2 – c
2 a
1) = 1 / (a
1b
2 – a
2 b
1)

= (b
1 c
2 – b
2 c
1) / (c
1 a
2 – c
2 a
1) = (c
1 a
2 – c
2 a
1) / (a
1b
2 – a
2 b
1) ...(1)
Consider (b1 c2 – b2 c1) / (c1 a2 – c2 a1) = (c1 a2 – c2 a1) / (a1b2 – a2 b1)
(b1 c2 – b2 c1)(a1b2 – a2 b1) = (c1 a2 – c2 a1)2 …(2), which is the condition for common root.
Comparing given equations x2 + px + qr = 0 and x2 + qx + pr = 0 with
a1 x2 + b1 x + c1 = 0 and a2 x2 + b2 x + c2 = 0,
we get a1 = 1, b1 = p, c1 = qr, a2 = 1, b2 = q, c2 = pr.
Putting these values in (2), we get
(p2r – q2r)(q – p) = (qr – pr)2 i.e. r(p2 – q2)(q – p) = r2(q – p)2 ,now r(q – p) will get cancelled from both sides
(p2 – q2) = r(q – p) or (p + q)(p – q) = r(q – p)

(p + q) = – r
p + q + r = 0.
(Note : You can memorise result (2) to solve these type of questions.)