What is the version of the following sentence with correct punctuation?

In order to find the axis of symmetry we took the factor 2 outside a bracket
In order to find the axis of symmetry we took the factor 2 outside a bracket.