Please improve grammaticallity of the given text
If he chose to give safety the most priority, he would have pulled the emergency brake and the accident could probably be prevented.
If he chose to give safety the most priority, he would have pulled the emergency brake, and the accident could probably have been prevented.