Let's assume that one number be 'k'
therefore, other number will be 51-k
(k) x (51-k)=378
51k- k2 =378
k2 - 51 k + 378= 0
k2 - 42 k -9k + 378= 0
k(k-42) -9(k-42)=0
(k-42)(k-9)=0
k-42=0 or k-9=0
k=42 or k=9
If one number is 42, then the other numberis 9.