If a line with slope m passes through points with coordinates (x,y) and (x1, y1), the equation can be written as,
[tex]\frac{y_1-y}{x_1-x}=m[/tex]Here,
[tex]\begin{gathered} m=-2 \\ (x,y)=(x,4) \\ (x_1,y_1)=(-2,10) \end{gathered}[/tex]Substitute these values in the above equation to calculate the value of x.
[tex]\begin{gathered} \frac{10-4}{-2-x}=-2 \\ \frac{6}{-2-x}=-2 \\ 6=-2(-2-x) \\ \frac{6}{-2}=-2-x \\ -3=-2-x \\ -3+2=-x \\ -1=-x \\ 1=x \end{gathered}[/tex]Therefore, the value of x is 1.