A sphere of radius and weight rests on horizontal ground. A thin uniform beam of weight and length is freely hinged to the ground at , which is a distance from the point of contact of the sphere with the ground. The beam rests on the sphere, lying in the same vertical plane as the centre of the sphere. The coefficients of friction between the beam and the sphere and between the sphere and the ground are and respectively.
Given that the sphere is on the point of slipping at its contacts with both the ground and the beam, find the values of and .