Find the ordered triple (p,q,r) that satisfies the following system: p−2q=3−4p+7q,q−2r=−2−5q,p+r=9+10q.