ƯCLN(a,b)=24
=>\(\left\{{}\begin{matrix}a=24x\\b=24y\end{matrix}\right.\)
Ta có: a+b=120
=>24x+24y=120
=>x+y=5
=>\(\left(x,y\right)\in\left\{\left(0;5\right);\left(5;0\right);\left(1;4\right);\left(4;1\right);\left(2;3\right);\left(3;2\right)\right\}\)
=>\(\left(a,b\right)\in\left\{\left(0;120\right);\left(120;0\right);\left(24;96\right);\left(96;24\right);\left(48;72\right);\left(72;48\right)\right\}\)
mà a,b là các số nguyên tố
nên \(\left(a,b\right)\in\varnothing\)