3. (15%) Fig. 1 shows a uniform horizontal beam with a length of L and a mass of M
attached to a wall. Its far end is supported by a light cable that makes an angle of
with the beam. A bottle of mass m1 is hanged at the end of the beam. A person of
mass m2 stands a distance d from the wall. Find the tension in the cable and the
components of the reaction force exerted by the wall on the beam.