start by susbtracting 5x on both sides of the equation in order to get all x terms one side and all constants in the other side
[tex]\begin{gathered} 7x-5x=5x-5x+4 \\ 2x=4 \end{gathered}[/tex]now divide both sides by 2 in order to obtain the value of x
[tex]\begin{gathered} \frac{2}{2}x=\frac{4}{2} \\ x=2 \end{gathered}[/tex]