Suppose you have a wedge on a table with length $l$ and mass $M$. The angle between the slope and the horizontal direction is $\alpha$. You also have a point of mass on the top of the wedge with mass $m$. The distance the wedge travels is to be calculated while the point of mass gets to the bottom. There is no friction between any of the surfaces.
I write the external forces acting on the system which would be the $mg$ and $Mg$ forces (pointing downwards) acting on the point and the wedge respectively and also a froce $T$ (pointing upwards) acting on the wedge exerted by the table coming from the constraint that the wedge must not dwell into the table.
My problem is that the solutuion suggests that all vertical external forces acting on the center of mass cancel out. However, if I do a little calculation I find that the force with which the point of mass pushes against the surface of the slope is $mg\cos\alpha$. The vertical component of this pushes the table downwards, which is \begin{equation}mg\cos\alpha\cos(\pi/2-\alpha) = \frac{mg}{2}\sin(2\alpha)\end{equation}
Thus the total force with which the slope-mass system pushes the table is \begin{equation}\frac{mg}{2}\sin(2\alpha) + Mg\end{equation}
This force is equal (in magnitude) with the force $T$, but this way vertical forces certainly do not cancel out, because the sum of them is \begin{equation}T -Mg - mg = \frac{mg}{2}\sin(2\alpha) + Mg - Mg - mg = mg\left(\frac{sin(2\alpha)}{2} - 1\right)\end{equation} which is negative, thus points downwards and indicates that the center of mass moves downwards.
What is the problem in my way of thinking?