You did a) just find. As $(-2,-1,0,1,2)$ is a complete residue class $\mod 5$ it must be that $a\equiv 0,\pm 1, \pm 2\pmod 5$ and therefore $a^2\equiv 0, 1,4\equiv -1$ none are congruent to $2$ or to $3\equiv -1$.
As for $b$ we have $x^2,y^2, z^2 \equiv 0, 1,-1\mod 5$ so we mus have some how that $x^2 + y^2 + z^2 \equiv (0|1|-1) + (0|1|-1) + (0|1|-1)\equiv 0$.
And it should be clear of all the combintations:
$0 + 0 + 0 \equiv 0$ (Hit)
$0 + 0 + 1\equiv 1$,$0+0-1\equiv -1; 0+1+1\equiv 2$ (Misses)
$0 + 1\equiv -1\equiv 0$ (Hit)
$0 -1 -1\equiv -2; 1+1+1\equiv 3; 1+1-1\equiv 1; 1-1-1\equiv -1; -1-1-1\equiv -3$ (Misses)
The only way $x^2 + y^2 + z^3 \equiv 0\pmod 5$ is if all $x^2,y^2, z^2 \equiv 0$ in which cae $x,y, z\equiv 0$ and are all multiples of $5$
or if one of them is a multiple of $5$ and the other two .... are not. (Note, we never said that the other two could be anything; we only said they can't be multiples of $5$. One must be $x$ (or $y$) $ \equiv \pm 1$ so $x^2$( or $y^2$) $\equiv 1$ and the other must be $y$ (or $x$) $\equiv \pm 2$ so that $y^2$ (or $x^2$) $ \equiv 4\equiv -1$.)