A tank is 1/4th full. Two pipes which fill the tank in 30minutes and 40 minutes respectively are opened simultaneously. After 10 minutes, a third pipe which empties the full tank in 60 minutes is also opened. In how many minutes the tank will be full? A) 14 B) 12 C) 15 D) 17