A can do work in 30 days, whereas B can do the same in 45 days. A starts and works for 10 days, then B finishes the remaining work. How many days will B take to finish the remaining work?

a) 18
b) 15
c) 12
d) 9