Duplicate Question Isn't a duplicate, I didn't mention they are finite.
Question:
Given groups $G_1, G_2$, if $K$ is a subgroup of $G_1 \times G_2$, are there $H_1\leq G_1$ and $H_2\leq G_2$ such that $K=H_1\times H_2$?
I have a strong belief that the upper claim is wrong, but as much as I try I couldn't find a valid counter example.
I have also tested the very basic case with $K=\{(e_1,e_2)\}$