Let fixed charge for the hostel is `x` rupees and cost for per day food is `y` rupees.
Then,
`x+20y = 1000->(1)`
`x+26y = 1180->(2)`
Subtracting (1) from (2),
`x+26y-x-20y = 1180-1000`
`=>6y = 180`
`=>y = 30`
Putting value of `y` in (1),
`x+20(30) = 1000`
`=>x = 1000-600`
`=>x = 400`
So, fixed charge for the hostel is `400` rupees and cost for per day food is `30` rupees.