We have: 2a+6b−3(a+3b)2)=2(a+3b)−3(a+3b)2 =(a+3b)(2−3(a+3b)) =(a+3b)(2−3a−9b)∴2a+6b−3(a+3b)2=(a+3b)(2−3a−9b)