Just add them together. the first one you can factor out a b to you have b times b + 6, the second one you have factor out a negative 10, to -10 times b + 6 all of that is equal to zero, now factor out a b + 6.