144+(16-x)^2=(32-x)^2-400
(32-x)^2-(16-x)^2=144+400
(32-x+16-x)(32-x-16+x)=544
(48-2x)*16=544
48-2x=34
2x=48-34
2x=14
x=7