How do I write this in function notation part b

SOLUTION
Given the question in the image, the following are the solution steps to answer the question.
STEP 1: Write the given details
Total rice bought is 75kg
Each week, he used 4.5kg, this means in w weeks, he will use:
[tex]4.5\times w=4.5w[/tex]STEP 2: Get the remaining kilograms of rice after w weeks
This will be gotten by using the function below:
[tex]75-4.5w[/tex]Hence, the function will be gotten as:
[tex]r(w)=75-4.5w[/tex]