a2+bc+ab+ac =?
a2+bc+ab+ac = a2+ab + bc + ac
Rearranging the terms and taking a and c as common respectively.
= a(a + b) + c(a + b)
= (a + c)(a + b).