If A can do a piece of work in 25 days, then he can do
of all work per day.
If B can finish work in 20 days, then he can do
of all work per day.
Together per day they can do

of all work.
They work together for 5 days, then the work done after these 5 days is
of all work.
If then B finishes alone, it is left for him
of all work.
Since B can do
of all work per day, then
of all work he can do in 11 days.
Answer: B will finish the work in 11 days.