factor 3ac + 3ad + 2cb + 2db