Given:
A can fill the cistern 12.5 hours
B can fill the cistern 25 hours
Formula Used:
Total Work = Efficiency × Time
Calculation:
Let the capacity of the cistern be 25 units (LCM of 12.5 & 25)
⇒ Efficiency of A = 25/12.5 = 2 units/hr
⇒ Efficiency of B = 25/25 = 1 unit/hr
⇒ Combined efficiency of A and B = 2 + 1 = 3 units/hr
Time taken by A and B to fill the cistern without leakage
⇒ 25/3 = 8(1/3) hours = 8 hours 20 mins
Time taken by A and B to fill the cistern with leakage
⇒ 8 hours 20 mins + 1 hour 40 mins = 10 hours
The combined efficiency of A and B with leakage
⇒ 25/10 = 2.5 units/hr
⇒ Efficiency of leakage = 3 - 2.5 = 0.5 units/hr
Time required by the leak to empty the full cistern
⇒ 25/0.5 = 50 hours
∴ The leak can empty the full cistern in 50 hours.

Alternate Method
Calculation:
Pipe A work in cistern = 12
⇒ Work is done by pipe A in 1 hour =2/25
Pipe B can fill a cistern = 25 hours
⇒ work is done by pipe B in 1 hours =1/25
Work done by two pipes in 1 hour together 252+251
⇒ By taking LCM 25,and 25 = 25
⇒ two pipes complete 253
⇒ time taking together 25/3 hours
⇒ 1 hours = 60 minute
⇒ 25/3 hours =325×60 = 8 hours 20 minutes
⇒ Due to leak 8 hours 20 minutes + 1 hour 40 minute = 10 hours
⇒ Due to leak was done by the pipe in 1 hour =253−101
⇒ By taking LCM 25 and 10 = 250
⇒ 25030−25 = 2505
⇒ Time taking 250/5 hours = 50 hours
∴ The leak can empty the full cistern in 50 hours.