Question 18$P$ and $Q$ are two regular polygons with respectively $n$ and $m$ number of sides. The ratio of the interior angles of $P$ and $Q$ is $4:3$. If $n\gt m$, how many possible pairs of $(n,m)$ are there?