The equationsx3+5x2+px+q=0 and x3+7x2+px+r=0 have two roots in common. If the third root of each equation is represented by x1 and x2 respectively, compute the ordered pair (x1,x2).
(x_1,x_2) = (5,-9)