factor ab+2ac+3b^2+6bc-5a-13b+4c-10