theo định lí viet ta có x_1x_2=b và x_1+x_2=-a\Rightarrow 5a+b=22 \Leftrightarrow -5(x_1+x_2)+x_1x_2=22
\Leftrightarrow x_1(x_2-5)-5(x_2-5)=47
\Leftrightarrow (x_1-5)(x_2-5)=47=1.47=47.1=(-1)(-47)=(-47)(-1)
giải ra ta lấy được (x_1;x_2)=(52;6);(6;52)
thế là xong