33. As shown in the figure, in square $A B C D$, $C M=3 B M$. If the perimeter of trapezoid $A M C D$ is 6 more than the perimeter of $\triangle A B M$, find the side length of the square.
Reference answer: 4