This is hard to impossible to tell from a distance. Your answers here were way better than in some other threads.
I gave you some advice somewhere hidden in a seeming joke:
Nike: Just do it! I meant that seriously. It is not enough to read solutions, you must do them. I didn't know the answer in this thread either and actually found it a good question. I first thought a bit about a possible counterexample, and as there wasn't an immediate one, I took a closer look at the given conditions. That gave me [imath] p(x)\in F[x] [/imath] with [imath] p(r)=0. [/imath] But every multiple [imath] f(x)\cdot p(x) [/imath] also has [imath] f(r)\cdot p(r)=0. [/imath] It is a standard assumption to assume lowest degree in order to make [imath] p(x) [/imath] unique - up to scaling factors from [imath] F. [/imath] Then, I wrote down [imath] p(x)=a_nx^n+\ldots+a_0 [/imath] and "saw" that it is [imath] p(x)=x\cdot q(x)+ a_0. [/imath] This led me to consider [imath] a_0 [/imath] and to find a way that excluded the possibility [imath] a_0=0. [/imath] Once I knew that [imath] a_0\neq 0 [/imath] it was easy to multiply my equation by [imath] a_0^{-1} [/imath] and get [imath] 0=a_0^{-1}\cdot r\cdot q(r) + 1. [/imath] That was the clue.
So now you know "how" I found the solution. I didn't look it up in a book or know it right away. I took some elementary steps. And that's what you should do. Play with what you know and find a way through the jungle. Be confident and try different paths. You won't succeed automatically on your first attempt. No problem, take another attempt. If you only knew how many scribblings in my life went directly into the bin! You have to try. And I think this is more of a difficulty that you need to overcome. Try some things and don't be afraid to fail.
I don't know whether this will be helpful, but I wrote an article about problem-solving:
How to Write a Math Proof and Their Structure
It's probably not my best article. Nevertheless, it might contain some helpful tips. Practice and training is the key.