As per the problem,
The larger pump takes 40 minutes to fill the pool.
The smaller one takes 60 minutes.
When both the pumps are working , let the time taken be x minutes , then we can write

Hence, when both the pumps works together, Time taken =24 minutes.