Expression

my solution = or could also be

The book lists the solution as , are they both correct? And how do I know what to factor out to get consistent numbers with the book? In general I always factor out the largest possible number, in this case 14.