One pipe can fill a tank in 40 minutes and an outlet pipe can empty the full tank in 24 minutes.If both the pipes are opened simultaneously, what time will it take for the full tank to be emptied?

A. 30 minutes

B. 60 minutes

C. 15 minutes

D. 45 minutes