A can complete a work in 12 days and B can complete the same work in 24 days. Find the time taken by both A
and B together to complete the work.