Each spring contributes a potential energy of $\frac{1}{2}kx^2$, so the total potential energy is
$$
V = \frac{1}{2}kx^2 + \frac{1}{2}kx^2 = kx^2
$$
The kinetic energy is
$$
T = \frac{1}{2}m\dot{x}^2
$$
So the Lagrangian is
$$
\mathcal{L} = \frac{1}{2}m\dot{x}^2 - kx^2
$$
Apply the Euler-Lagrange equation:
$$
\frac{d}{dt}\left(\frac{\partial \mathcal{L}}{\partial \dot{x}}\right) - \frac{\partial \mathcal{L}}{\partial x} = 0
$$
Compute the derivatives:
$$
\frac{\partial \mathcal{L}}{\partial \dot{x}} = m\dot{x}
$$
so
$$
\frac{d}{dt}\left(\frac{\partial \mathcal{L}}{\partial \dot{x}}\right) = m\ddot{x}
$$
and
$$
\frac{\partial \mathcal{L}}{\partial x} = -2kx
$$
Substitute:
$$
m\ddot{x} - (-2kx) = 0
$$
Thus the equation of motion is
$$
m\ddot{x} + 2kx = 0
$$