Can someone pls help me find the x value?

Apply the distance formula and find an expression for the distance between the points;
[tex] A(2,4) and B(-6,x) [/tex]
Recall that the distance formula is given by,
[tex]d=\sqrt((x_2 - x_1 )^2 +(y_2 - y_1)^2[/tex]
[tex] 10=\sqrt((-6-2)^2 + (x-4)^2)) [/tex]
This implies that
[tex] 10=\sqrt((-8)^2 + (x-4)^2))[/tex]
[tex] 10=\sqrt(64 + (x-4)^2))[/tex]
Squaring both sides
[tex] 100=64 + (x-4)^2[/tex]
[tex] 100-64=(x-4)^2[/tex]
[tex] 36=(x-4)^2[/tex]
Taking square root of both sides gives
[tex] \sqrt(36)=(x-4)[/tex]
[tex] 6=(x-4)[/tex]
[tex] 6+4=x[/tex]
[tex] x=10[/tex]