Let's take the quantity of Rs. \(4.50\) rice bought to be \(x\) kgs.
From the question, we know that
\(4.5x+5(50-x)=240\)
\(4.5x+250-5x=240\)
After solving the above equation, we get
\(250-0.5x=240\)
\(x=\frac{-10}{-0.5}\)
\(x=20\) kgs
The correct option is (C)