Given that $\triangle ABC$ is equilateral triangle, and $M$ is a point inside $\triangle ABC$ such that $$AM=3\;\text{units} \qquad BM=5\;\text{units} \qquad CM=4\;\text{units}$$ what is the measure of $\angle AMC$ ?
I tried to use cosine rule since the sides are congruent, but it didn't help !
Any help is appreciated.

Reflect $M$ in $BC$ to obtain $P$. Reflect $M$ in $CA$ to obtain $Q$. Reflect $M$ in $AB$ to obtain $R$.
Then $\triangle AQR$, $\triangle BRP$ and $\triangle CPQ$ are three $120^\circ$-$30^\circ$-$30^\circ$ triangles. $QR:PQ:RP=3:4:5$. Hence $\angle PQR=90^\circ$. $\angle AQR=\angle CQP=30^\circ$. So, $\angle AQC=150^\circ$.
$\angle AMC=\angle AQC=150^\circ$.