In triangle $PQR,$ $M$ is the midpoint of $\overline{QR}.$ Find $PM.$ [asy] unitsize(1 cm); pair P, Q, R; P = (1,3); Q = (0,0); R = (4,0); draw(P--Q--R--cycle); label("$P$", P, N); label("$Q$", Q, SW); label("$R$", R, SE); label("$5$", (P + Q)/2, NW, red); label("$7$", (P + R)/2, NE, red); label("$6$", (Q + R)/2, S, red); [/asy]