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 of up to the right, determine (a) the acceleration of B relative to A, (b) the tension in cable CD.