A can do a piece of work in 40 days. He works at it for 5 days and then B finishes it in 10 days.
In what time can A and B together finish it ?