Let us consider the height above the sea level as positive and that below the sea level as negative.
Height of point A from sea level = 5700 m
Depth of point B from sea level = -39600 m
Vertical distance between A and B = Distance of point A from sea level - Distance of point B from sea level
= 5700 - (-39600)
= 45300 m