Let x be the number of days on which Pat worked.
On each of these days, he earned 100 and had no food costs, so he earned a total of 100x$ dollars.
Since Pat worked for x of the 70 days, then he did not work on 70−x days.
On each of these days, he earned no money and was charged 20 for food, so was charged a total of 20(70-x)$ dollars for food.
After 70 days, the money that he earned minus his food costs equalled $5440.
Algebraically, we get 100x−20(70−x)=5440.
Thus, 100x−1400+20x=5440 or 120x=6840, which gives x=57.
Therefore, Pat worked on 57 of these 70 days.
(An alternative approach would be to test each of the five given choices to see how much money Pat earns after food costs are deducted.)