Solve each of the following equations for x by first writing the equation so that the left-hand side of the equation is equal to 0.
a. x² + 12x + 35 = 2x + 10x = ?
b. x² + x + 7 = 3x + 22x = ?