As per the given question ,
Food of 150 men for 45 days = 150 × 45 = 6750 unit
After 10 days , Food of 150 men for 150 × 10 = 1500 unit
And after 10 days remaining men = 150 - 25 = 125
and remaining food = 6750 - 1500 = 5250 unit
Let D be the number of days for which the remaining food .
So, 125 × D = 5250
⇒ D = 5250 /125 = 42 days