You can also show this using an elementary counting argument. First, note by Lagrange's theorem that every element must have order $1$, $5$, $7$, or $35$.
If there is an element of order $35$ then the group is cyclic, so there is some $g$ with order $35$. Then $g^5$ has order $7$, and $g^7$ has order $5$.
Now suppose there is no element of order $35$. Only the identity has order $1$, so every non-identity element must have order $5$ or order $7$.
If there is no element with order $7$, then every non-identity element has order $5$. Therefore $G$ is the union of $n$ subgroups of order $5$. Since $5$ is prime, each pair of subgroups intersects trivially, which means that we must have $|G| = 35 = 4n+1$, but there is no integer $n$ satisfying this equation.
Similarly, if there is no element with order $5$, then every non-identity element has order $7$. Then $G$ is the union of $n$ subgroups of order $7$. Since $7$ is prime, again the subgroups intersect trivially, so $|G| = 35 = 6n+1$. Again, there is no integer $n$ satisfying this equation.
We conclude that $G$ must contain at least one element of order $5$ and at least one element of order $7$.