In the absence of any prescribed location of A,B and C, we can assume that the Surveyor is at point A and B is the Point across the swamp and the surveyor moves to point C  to the right of point A at a distance of 50 m, as shown in the figure below, we can calculate the distance AB as follows

 

                                                           ****