So this is a problem from Herstein. My attempt is as follows:
Assume p and q are prime and p>q. We know that there exists a unique subgroup of order p ,call it H=(a) and a subgroup of order q,call it K=(b). Also it can be shown that HK=G.So define T:G->G' by T((a^i)(b^j))= (a')^i(b')^j where a' and b' are the corresponding generators of H' and K' in G'. Is it correct? I am unable to prove that this is a homomorphism. Also since Sylow theorems and semi-direct products or direct products have not been covered till this point I don't want to use them. Thanks Note: I meant unique subgroup of order p, not of order q.