Let us consider the instantaneous kinematics of the system.\ Let $M$ be the mass of the wedge.\ Let $V$ be the velocity of the wedge. \ Let $v$ be the velocity of the block relative to the wedge. \vspace{6pt} \ The velocity components of the block relative to the ground are: $$v_x = v\cos{\alpha}-|V|, \qquad v_y= v\sin{\alpha}$$
From there we obtain \begin{equation} \tan{\beta}=\frac{v\sin{\alpha}}{v\cos{\alpha}-|V|} \end{equation}
2) Displacement of CM
Since no force acts on the system horizontally, the horizontal displacement of the center of mass $\Delta x_{cm_x}$ must equal to 0, therefore we can write:
Now we substitute V into (1): $$\tan{\beta}=\frac{v}{v-\frac{mv}{M+m}}\tan{\alpha}$$ And obtain the following: \boldmath $$M=\frac{m\tan{\alpha}}{\tan{\beta} + \tan{\alpha}}$$