Hint 1: A degree 2 polynomial has the form
where and we know that
Since our finite field has only 3 equivalence classes there are two choices for . Since there is no restriction on or (they do not affect the degree of the polynomial) they each have three choices. This gives
See if you can generalize this.