Perfect will be a=b, because |a−b|=>|a−a|=0 so for a=b we have:
a2−6a+5a−373=0 <=> a2−a−373=0
x=−b±√b2−4ac2a=> x=1±√1−4(1)(−373)2=>x=1±√14932=> x=1± 38.632
x1=39.632=19.81
x2=−37.632=−18.81 BUT because is negative rejected
so a=20 so 20b−120+5b=373 => b=19.72 its NOT integers so you try values until a,b integers
Finaly the answer is a=44 and b =13 like Guest says and can see it in this graph if you try values!
https://www.desmos.com/calculator/4fhytbda6x
Hope it helps!