Fixed hostel charges be Rs. x.
Amount to be paid be Rs. y.
x + 20y = 1000 …………. (i)
x + 26y = 1180 …………. (ii)
By elimination method we can find solution.
Subtracting eqn. (ii) from eqn. (i),

∴ y = Rs. 30
Substituting the value of ‘y’ in eqn. (i),
x + 20y = 1000
x + 20(30) = 1000
x + 600 = 1000
∴ x = 1000 – 600
∴ x = Rs. 400
Fixed charge, x = Rs. 400
Amount to be paid, y = Rs. 30.