A petrol tank that is 1/2 full has 8 gallons petrol removed. The tank is then 1/10 full. What is the capacity, in gallons, of the tank?