Here is what I have so far:
Because 7 divides a^2+b^2, this means that a^2+b^2 ≡ 0 (mod 7). From this, we deduce that a^2 ≡ 0 (mod 7) and b^2 ≡ 0 (mod 7). For a^2 ≡ 0 (mod 7), we multiply both sides by a^(-1) to get a ≡ 0 (mod 7). This means that a is divisible by 7. Likewise, For b^2 ≡ 0 (mod 7), we multiply both sides by b^(-1) to get b ≡ 0 (mod 7), which implies that b is divisible by 7. Hence, both a and b are divisible by 7.
I think this is the correct way to prove it but I just want to make sure that my steps are correct and that I'm not missing anything.