A can do a work in 12 days and B can do it in 18 days. They started working together, but A leaves 3 days before the work gets over. For how many days did the work together?
a. 6
b. 5
c. 7
d. 7.2