Alternatively, use the LCM method:
Assume the total work is the LCM of 15 and 45, which is 45 units.
- A's daily efficiency = $45 \div 15 = 3$ units/day.
- B's daily efficiency = $45 \div 45 = 1$ unit/day.
- Combined daily efficiency = $3 + 1 = 4$ units/day.
- Time taken = $\frac{\text{Total Work}}{\text{Combined Efficiency}} = \frac{45}{4} = 11.25$ days.