Solve the below problem:
Q: A 250-kg crate B is suspended from a cable attached to a 20-kg trolley A which rides on an inclined I-beam as shown. Knowing that at the instant shown the trolley has an acceleration n of 0.4 m/s2 up to the right, determine
(a) The acceleration of B relative to A,
(b) The tension in cableCD.