A truck travels 40 miles from point A to point B in exactly 1 hour. When the truck is halfway between point A and point B, a car starts from point A and travels at 50 miles per hour. How many miles has the car traveled when the truck reaches point B?