Arithmetic and geometric sequences word problems