已知(a1+2d)(a1+6d)=-12与(a1+3d)+(a1+5d)=-4为方程组,求a1与d?