Maximum straight-line braking is done by:
Using only the rear brake.
Using only the front brake.
Using both the front and rear brakes without locking either wheel.
Using both the front and rear brakes while locking the rear wheel.
On a straightaway, you can stop in the shortest distance by using both brakes. Try to avoid locking either brake.