Given the equation:
$$x^e\equiv c \pmod p$$
where $p$ is prime number, $c$ is positive integer and $e$ is positive integer and $\gcd(e, p-1) = 1$. Explain how would you solve given equation.
Also, using that explanation solve next equation:
$$x^{77} \equiv 2 \pmod{246}$$
I know that I need to use Chinese reminders theorem but I am not sure how... Please can you provide some explanation how to solve this.