Set up the Lagrangian's equation.

I know that the lagrangian's equation is L=T-V where V is the potential energy and T is the kinetic Energy.

I was taking as generalised coordinates w but i don't know how to proceed and get the kinetic and potential energy.

Help please! thank youuuu