Let food stock will be exhausted in x days.
Given, M1 = 120
D1 = 45
M2 = 120 + 30 = 150
D2 = X
Then, using M1D1= M2D2
120 x 45 = 150 x x
X = \( \Large\frac{120 \times 45}{150} = 36 \)