find the length of AB.