X=10.25 days precisely...here is how

‘A’ take 9 day for work. Lets say work is 1 unit.

We can say A has rate of work as 1/9 unit of work per day

‘B’ take 12 day for work.

rate of B = 1/12 work/day

To make denominators equal,

A=1/9 =4/36

B=1/12=3/36

now A starts the work and B follows and they do this alternately, so every 2 days they do

4/36 + 3/36= 7/36 work

we need total 1 unit of work means 36/36 of work.

so 7*5=35, since we take 7/36 as work of two days, 7*5/36 will be work of 10 days.

Now on the last day it will be A whose turn it is, and its speed is 4/36 , we only need 1/36 more to complete work on 11th day. So A will work only quarter of the day i.e 6 hours.

Thus answer comes out to be 10.25 days.