I am marking down the scale degrees for this exercise. I think the tonic in this piece is D as it feels like a resolution. To find the first scale degree in the exercise I counted up from D until I got to A, which was five steps. So This is the fifth scale degree, which is correct. Then I did the same for the other degree and got to two (as E is right above D). The answer, however, is apparently 7. Where did I go wrong? Does this mean that the tonic is actually F? Because that doesn't sound right to me.