All alternate-day problems become simple arithmetic once the job has a concrete size. Take the LCM of the individual times as the total work in units; then each worker's daily output is a whole number. This is the same idea as the LCM method for time and work.
If A takes 10 days and B 15, call the job 30 units. A does 3 units a day and B does 2.
Working in whole units avoids adding fractions such as 1/10 + 1/15 again and again, and it makes the leftover on the final day easy to see. If the LCM is large, any common multiple works just as well; the answer does not depend on the size you choose.