But to say that human behavior evolved to meet a specific environmental requirement isn't a purpose, it's an outcome that allowed the genotype to procreate. It's a gray area and one must be careful speaking of goals, but if one is addressing a specific adaptation to meet a specific environmental requirement, it's all right.
After the driver reacts and presses on the brake pedal, on dry, level pavement, a car requires about 20 feet to stop at 20 miles per hour, 80 feet at 40 miles per hour and 180 feet at 60 miles per hour (all approximate distances).
Simple equation (reaction time not included): y = v^2 / 20
v = velocity MPH
y = stopping distance in feet
Another reason to learn some mathematics and science (it's based on the kinetic energy of the moving car). :)
You can't say "brain evolved to do X", you can at best say "brain is well suited to do X".