A and B depart from points A and B simultaneously, moving towards each other at a constant speed. When A and B meet at point C, C departs from point B, moving at a constant speed towards point A. When A and C meet at point D, A immediately turns around and reduces speed to 80% of the original speed. When A and C both arrive at point A, B is 720 meters away from point A. If the distance between C and D is 900 meters, what is the distance between A and B in meters?