For a car moving at a constant speed, the distance traveled varies directly with the time spent driving. If such a car travels 270 miles in 6 hours, how many miles does it travel in 8 hours?