Rectangle $ABCD$ has $AB=6$ and $BC=3$. Point $M$ is chosen on side $AB$ so that $\angle AMD=\angle CMD$. If the degree measure of $\angle AMD$ is $x^\circ$, what is the value of $x$?

Let's think step by step and output the final answer within \boxed{}.
user