Ms Tan

There was an equal amount of water in Tank A and Tank B. After pouring away 150 litres of water from Tank A and 250 litres from Tank B, there were 3 times as much water in Tank A as there was left in Tank B. How much water was there in each tank at first?