The position of center of mass of the system is closer to heavier mass since the position depends on the distribution of mass. In the given figure, the portion above diagonal contains air while the lower portion contains sand which is more heavier than air hence the center of mass lies below the diagonal at point D