I'm very confused at how this math problem is being set up... I just came across a page on my study on congruences. I've studied the theorems on it but I seem to be lagging behind in this direction. Can I get help with these two questions and I would love to know more about the answer with steps to how the question was solved. Thanks in advance.
(1) Find $2^{501} \pmod {17}$
(2) Solve for $41x \equiv 5\pmod {51}$