Find all solutions to
ab+2a+2b=-16
ac+2a+2c=26
bc+2b+2c=-14
The solutions (a,b,c) are (-6,3,-5) and (3,-2,1).