The question says the machine uses up m gallons of oil each hour on weekends.
This means that if the machine works for 24 hours each day, it implies that:
![\text{Total amount of oil used up in a day = 24}* m=24m](https://img.qammunity.org/2023/formulas/mathematics/college/msqd5b5csl68ogm1togd7bhzf06t4aojeq.png)
There are only two days on weekends i.e. Saturday and Sunday.
This means that if the amount of oil used in 1 day in the weekend is 24m, then we can say:
Saturday: oil used is 24m
Sunday: oil used is 24m
Total oil used during the weekend is:
![24m+24m=48m](https://img.qammunity.org/2023/formulas/mathematics/college/ffcnqbh536dxko5ufeyabz29zey3v7hh2p.png)