Let $G$ be a group and $H$ and $K$ be subgroups of $G$ of finite indices. Show that $H\cap K$ is of finite index.
I was trying to solve this problem by using the formula $o(HK)=\frac{o(H)o(K)}{o(H\cap K}.$ But the problem is, that nowhere it's given $H$ and $K$ are finite, so we cant use this formula. Next, I tried using the fact: $H$ and $K$ are two subgroups of $G.$ Let $a,b$ in $G$ then $Ha\cap Kb=\phi$ or there exists a $c\in G$ such that $(H\cap K)c=Ha\cap Kb.$ I proved this result stated above but I am not attaching it here because I found out that this is a rather popular one. (However, if someone feels that attaching the proof of this would be helpful incase, please, feel free to let me know.) Finally, after searching a while on the internet and looking at some strategies to solve these problems, I wrote out a solution which goes like this:
Given $H,K\leq G.$ Let the set of right cosets of $H,K$ be $H'=\{Hg_{i_1},...Hg_{i_k}\},K'=\{Kg_{j_1},...,Kg_{j_k}\}$ respectively. Now, say, $(H\cap K)g_{k_1}$ is a right coset of $H\cap K.$ Then, $Hg_{k_1}\in H'$ and $Kg_{k_1}\in K'$ as $H',K'$ are finite. Since $g_{k_1}$ is arbitary so we see $\forall (H\cap K)g_{k_1}$ $\exists i_p,j_p$ such that $Hg_{k_1}=H{i_p}\in H'$ and $Kg_{k_1}=K{j_p}\in K'$, thus, we conclude the set of cosets of $H\cap K$ finite since $H',K'$ is finite and we see that we can map every cose of $H\cap K$ to a coset of $H$ and $K$.
Is the above solution, correct? If not, where is it going wrong?
This link Does the intersection of two finite index subgroups have finite index? does not answer my question as there the user asks for a solution but I am asking this to validate my solution, i.e whether this solution is correct or not? I posted a solution and edited the OP to make it a solution verification post.