For a point (x,y) on the locus, (x−1)2+(y−3)2(x−2)2+(y−1)2=1625. Cross-multiplication gives 16[(x−2)2+(y−1)2]=25[(x−1)2+(y−3)2].
Expanding and arranging the constant as +170 yields 9x2+9y2+14x−118y+170=0. Hence a=b=9, c=0, d=14 and e=−118.
The requested value is 81+18+0+56−118=37, option (1).