Shows a uniform beam of mass m pivoted at its lower end, with a horizontal spring…

Shows a uniform beam of mass m pivoted at its lower end, with a horizontal spring attached between its top eitd and a vertical wall. The beam makes an angle 6 with the horizontal. Find expressions for (a) the distance (I the spring is stretched from equilibrium and the components of the force exerted by the pivot on the beam.