ASAP 100 POINTS, WILL MARK BRAINLIEST, should be a whole number

Answer:
[tex]x=2.[/tex]
Step-by-step explanation:
[tex]\text{Since Pythagoras Theorem, we have}\\10^2=x.(x+48)\\\Rightarrow x^2+48x=100\\\Rightarrow x^2+48x-100=0\\\Rightarrow x^2 -2x+50x-100=0\\\Rightarrow x.(x-2)+50.(x-2)=0\\\Rightarrow (x-2).(x+50)=0\\\Rightarrow x=2 \: \text{or} \: x=-50.\\\text{Since x is positive}\\\text{Therefore}, x=2.[/tex]
[tex]\\ \rm\Rrightarrow 10^2=x(x+48)[/tex]
[tex]\\ \rm\Rrightarrow 100=x^2+48x[/tex]
[tex]\\ \rm\Rrightarrow x^2+48x-100=0[/tex]
[tex]\\ \rm\Rrightarrow x^2+50x-2x-100=0[/tex]
[tex]\\ \rm\Rrightarrow x(x+50)-2(x+50)=0[/tex]
[tex]\\ \rm\Rrightarrow (x+50)(x-2)=0[/tex]
[tex]\\ \rm\Rrightarrow x=-50,2[/tex]
Distance must be positive