$${s_x = \frac{v_{2x}^2 - v_{1x}^2}{2 a_x}}$$