A small plane traveled from city A to city B, averaging 156 miles per hour. The trip took three hours. What is the distance from city A to city B?