Two pipes are connected to a water tank. The first pipe can fill the tank in 10 minutes and the second pipe can empty it in 15 minutes. If both pipes opened simultaneously, then find the time in which the tank will be completely filled with water.
A20 minutes
B40 minutes
C25 minutes
D30 minutes