Easier than expected as I could simply let B fall onto the water and reach the elevator right away, without even going through any of the obstacles.