The relationship between W and T is that T is the amount of hours the block is melting for, and T is the weight after W hours. As you can see, they are proportionate.
The maximum number of real roots is 5 because the degree is 5. The fundamental theorem of algebra states that the degree of a polynomial is the number of real solutions. (The degree is the highest exponent of the polynomial)