I have the following question:
If $H,K\leq G$ with $[G:K]=n,[G:H]=m$, then show that $[G:H\cap K]\geq \text{lcm}(m,n)$ and the equality holds when $gcd(m,n)=1$.
Attempt
I have shown that $[G:H\cap K]=n[K:H\cap K],m[H:H\cap K]$. But I don't know how to go on.
We know that $H \cap K$ is a subgroup of both $K$ and $H$. Therefore we have that
$$[G:H \cap K] = [G:H][H:H \cap K] \implies m = [G:H] \big |[G:H \cap K]$$
Similarly:
$$[G:H \cap K] = [G:K][K:H \cap K] \implies n = [G:K] \big |[G:H \cap K]$$
So therefore we have that $[G:H \cap K]$ is a common multiple of $m,n$ and hence trivially $[G:H \cap K] \ge \text{lcm}(m,n)$.
For the second part use the identity $\text{lcm}(m,n) \cdot \gcd(m,n) = mn$ and the well-known inequality $[G:H \cap K] \le mn$.