Let's assume the two parts to be x and y, y being the larger of the two numbers.
Then, from the question
x2+y2=208 .......(i) and
y2=18x .......(ii)
From (i), we get y2=208−x2
Now, putting this in (ii), we have
208−x2=18x
x2+18x−208=0
x2+26x−8x−208=0
x(x+26)−8(x+26)=0
As x can't be a negative integer, so x=8 is valid solution.
Using x=8 in (ii), we get y2=18×8=144
Thus, y=12 only as y is also a positive integer
Therefore, the two numbers are 8 and 12.