Just wondering if this works for this question, book had a different answer and I couldn't find another answer for the question.
Assume, to the contrary, that 3 | a and 3 | b, then a = 3k, and b = 3x for x,k $\in$ Z, then $a^2 - b^2$ = $(3k)^2 - (3x)^2$ which is equal to $3(3k^2 - 3x^2)$, since $3k^2 - 3x^2$ is an integer, 3 | $a^2 - b^2$ which is a contradiction.
Is this correct?