A mass m2 is attached at a fixed length to a swinging pendulum. The distance from the pendulum to mass m2 is x. Attached to the end of mass m2 by a spring of stiffness k is another mass m1. Two external foces of F1 and F2 are acting on the two masses in the horizontal direction. The length from the hinge of the pendulum to mass m1 is L. The spring's unstretched length is L0. Find the equations of motion using the Lagrange method.