X, Y and Z can do a piece of work in 30, 40 and 50 days respectively. All three of them began the work together but Y left 4 days before completion of the work. In how many days was the work completed?
If A, B and C can do a job working alone in 12, 18 and 36 days respectively. They all work together for 2 day, then B quits. How many days will A and C take to finish rest of the job?