A Can do a job in 24 days, B in 9 days and C in 12 days. B and C together start the work but leave after 3 days. How much time was taken by A to complete the remaining work?