Let the initial position of the ship be point O, O be OD perpendicular to point D, and BD=x, then AD=x+ 1. In triangle ADO and triangle ABO, it is formulated by projective theorem: (x+ 1)(x+x+ 1)=36, and x is obtained. Then AB=2x+ 1, and substitute x to get AB=8.