18 = a+2d; 30 =a+16d