Explicație pas cu pas:
a,b=?
(a,b)=6=>a=x*6;b=y*6
a+b=42=>x*6+y*6=42=>x+y=7
x=1=>a=6
y=6=>b=36
x=2=>a=12
y=5=>b=30
x=3=>a=18
y=4=>b=24
x=4=>a=24
y=3=>b=18
x=5=>a=30
y=2=>b=12
x=6=>a=36
y=1=>b=6