From the diagram below, moving from point A to B and from B to c…