Block A has a mass of 5 kg and is placed on the triangular cart B having a mass of 7 kg. If the system is released from rest, determine the positions of block A when cart B strikes the wall CD.Also determine the distance B moves if wall CD is removed and A reaches point O. Neglect the size of block A and any friction between contact surfaces. (15 points)

Fig: 1

Fig: 2