Bear A and Bear B agreed to climb Mount Baiyun along the same route during the weekend. They started their journey from the foot of the mountain at the same time, and descended immediately after reaching the peak. Each of their descending speeds is twice their respective ascending speeds, and Bear A is faster than Bear B. After 2 hours of travel, Bear A and Bear B met 1600 meters away from the peak. When Bear B reached the peak, Bear A was exactly halfway down the mountain. How many hours did it take Bear A to travel from the start to return to the foot of the mountain?