x can do a piece of work in 40 days . he works at it for 8 days and then y finished it in 24 days . how long will y take to complete the work ?
"work done by x in 8 days = 8 * 1 / 40 = 1 / 5 remaining work = 1 - 1 / 5 = 4 / 5 4 / 5 work is done by y in 24 days whole work will be done by y in 24 * 5 / 4 = 30 days answer is a"
multiply(24, inverse(subtract(const_1, divide(8, 40))))