Let $p$ be a prime number and $a,b,c$ integers such that $a$ and $b$ are not divisible by $p$. Prove that the equation $ax^2+by^2 \equiv c$ (mod $p$) has integer solutions.
I am trying to come up with a solution using Pigeonhole Principle, but I have limited knowledge of number theory. So I am having hard time coming up with an idea to start with.