@KasmirKhaan To prove that "gHg' contained in H for all g" implies "gHg'=H for all g":
Assume that gHg' contained in H for all g. Now, we want to prove that gHg'=H for all g. Fix an arbitrary g. We know that gHg' is contained in H by our assumption, so we need to prove that H is contained in gHg'. By multiplying g' on the left and g on the right, we only need to prove that g'Hg is contained in H. However, that is true by assumption, since gHg' is contained in H for all g, and in particular for g'.