A 250-kg crate B is suspendedform a cable attached to a 20-kg trolley A which rides on aninclined I-beam as shown.Knowing that at the instant shownthe trolley has an acceleration of0.4 m/s2 up to the right,determine
(a) the acceleration of B relative to A,
(b) the tension incable CD.