Find the principal and general solutions of the following equation: sec x = 2