x^2+(23-x)^2=17^2
x^2+x^2-46x+529=17^2
2x^2-46x+529-17^2=0
2x^2-46x+240=0
x^2-23x+120=0
(x-15)(x-8)=0
x=15或x=8