Let X,Y be the end points of the diameter of a circumference $\mathit{C}$, and let N be the mid-point of one of the arcs XY of $\mathit{C}$. Let A,B be two points in the segment XY. The lines NA and NB cut $\mathit{C}$ in the points C and D, respectively. The tangents to $\mathit{C}$ in C and D intersect at P. Let M the point of intersection between the segments XY and NP. Prove that M is the mid-point of the segment AB.
I found this exercise on a geometry book (olympiad book without theory, just exercises. I'm learning this type of geometry for the first time) but I do not have any idea on how to tackle it. What theorems could I use to solve this? Any help/hints will be very appreciated.

(Please refer to the diagram.) First, we shall prove that $ABDC$ is cyclic. Let $O$ be the center of the original circle. Then, $NO\perp XY$. Therefore, $$NA.NC=NA.AC+NA^2=XA.YA+NO^2+OA^2=(XO-AO)(YO+AO)+NO^2+OA^2=XO^2+NO^2$$ We do the same thing for B and obtain $NB.ND=NA.NC$. Therefore, $ADBC$ is cyclic as claimed.
Let $\angle ANM=\theta_1$, $\angle BNM=\theta_2$, $\angle NAM=\theta_3$, $\angle NBM=\theta_4$. By cyclicity of $ABDC$, $\angle CDN=\theta_3$. As PC is tangent to the circle, $ext. \angle PCN=\theta_3$. Similarly for the angles marked $\theta_4$.
Applying sine rule to $\triangle PCN$ and $\triangle PDN$, we have, $$\frac{PC}{\sin \theta_1}=\frac{PN}{\sin \theta_3}\text { and }\frac{PD}{\sin \theta_2}=\frac{PN}{\sin \theta_4}\text .$$ As $PC=PD$, $$\frac{\sin \theta_1}{\sin \theta_2}=\frac{\sin \theta_3}{\sin \theta_4}\text .$$ Applying sine rule to $\triangle AMN$ and $\triangle BMN$ , we have, $$\frac{AM}{\sin \theta_1}=\frac{MN}{\sin \theta_3}\text { and } \frac{BM}{\sin \theta_2}=\frac{MN}{\sin \theta_4}\text .$$ $$\therefore \frac{AM}{BM}=\frac{\sin\theta_1.\sin\theta_3}{\sin\theta_2.\sin\theta_4}=1$$ $\blacksquare$