Solve the below problem:
Q: A counterweight D of mass 40 kg is attached to a cable that passes over a small pulley at A and that is attached to a support at B. Knowing that L = 15 m and h = 5 m, determine
(a) The length of the cable from A to B,
(b) The mass per unit length of the cable. Neglect the mass of the cable from A to D.