We start with the identity:
\[
\sec^2 x = 1 + \tan^2 x
\]
Substitute into the expression:
\[
\sec^2 x + 5 \tan x + 5 = (1 + \tan^2 x) + 5\tan x + 5 = \tan^2 x + 5\tan x + 6
\]
Now factor the quadratic:
\[
\tan^2 x + 5\tan x + 6 = (\tan x + 2)(\tan x + 3)
\]