已知数列{a n }为等差数列,S n 是它的前n项和.若a 1 =2,S 3 =12,则S 4 =(  ) A.10