The total kg of rice bought is 75kg
Each week, 4.5kg is used,
Let the number of weeks be represented by n
The remaining amount of rice is represented by r
The relationship between the values above can be given as,
![r=75-4.5n](https://img.qammunity.org/2023/formulas/mathematics/college/pjqosv4ta9v2dvajk2tdjbtet4w639aj15.png)
For 6 weeks, the kilogram of rice left where n = 6 is,
![\begin{gathered} r=75-4.5n \\ r=75-4.5(6)=75-27=48\operatorname{kg} \end{gathered}]()
For 12 weeks, the kilogram of rice left where n = 12 is,
![\begin{gathered} r=75-4.5n \\ r=75-4.5(12)=75-54=21\operatorname{kg} \end{gathered}]()
For w weeks, the kilogram of rice left where n = w is,
![\begin{gathered} r=75-4.5n \\ r=75-4.5(w)=75-4.5w \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/cr68v72atov2u0nrzqdzinl9mfka4orjo2.png)
Hence, after 6 weeks, the remaining rice left is 48kg
Hence, after 12 weeks, the remaining rice left is 21kg
Hence, after w weeks, the remaining rice left is (75-4.5w)kg