I might be giving out too much information here (so don't read unless you want spoilers). Anyway, as rings the Chinese Remainder Theorem gives
$$\mathbb{Z}/n\mathbb{Z} \cong \mathbb{Z}/p\mathbb{Z}\times \mathbb{Z}/q\mathbb{Z}$$
The isomorphism takes $(\mathbb{Z}/n\mathbb{Z})^\times$ to $(\mathbb{Z}/p\mathbb{Z})^\times \times (\mathbb{Z}/q\mathbb{Z})^\times$. Now the order of $(\mathbb{Z}/p\mathbb{Z})^\times \times (\mathbb{Z}/q\mathbb{Z})^\times$ is $(p-1)(q-1)$ and if $m = \textrm{lcm}(p-1,q-1) = \phi(pq)/\gcd(p-1,q-1)$, then
$$(x,y)^m = (x^m,y^m)=(1,1)$$
using Lagrange on the components. This shows that the exponent of your group divides $\phi(pq)/\gcd(p-1,q-1)$, which is precisely the claim.
Addenda: The point here is that you can look at elements in $\mathbb{Z}/n\mathbb{Z}$ that are coprime to $n$ as pairs of nonzero elements of $\mathbb{Z}/p\mathbb{Z}$ and $\mathbb{Z}/q\mathbb{Z}$. This is the classical Chinese Remainder Theorem that you should know if you've been assigned this problem. Now $\phi(n)/g$ is the least common multiple of $p-1$ and $q-1$, so taken such a pair to this power you should see the rest from Lagrange or Fermat's little theorem.