I'm having trouble figuring out a math problem.

1. x2(sqaured) + 12 =-7x

2. -6x - 2 = (3x + 1)2(sqaured)

My first instinct was to factor both. Not sure if this was the right approach. Please any advice or links to similar problems to help solve would help a lot

thanks in advance!