The solution to factor ad+3a-d^2-3d is (d+3)(a-d)