Answer: it will take 3.6 hours
Step-by-step explanation:
If it takes Daniel 9 hours to clean an office building, it means that the rate at which he cleans the office building per hour is 1/9
If it takes Mark 6 hours to clean the office building, it means that the rate at which Mark cleans the office building per hour is 1/6
If they work together, they would work simultaneously and their individual rates are additive. This means that their combined working rate would be
1/9 + 1/6 = (6 + 9)/54 = 15/54
Assuming it takes t hours for both of them to clean the office working together, the working rate per hour would be 1/t. Therefore,
15/54 = 1/t
t = 54/15 = 3.6 hours