What is the function for the arithmetic sequence 2, 7, 12, 17, 22, . . .?

A(n)=5+(n-1)(2)
A(n)=5+(n-1)(6)
A(n)=5x6
A(n)=2+(n-1)(5)

The correct function for the given arithmetic sequence 2, 7, 12, 17, 22, . . . is:

A(n) = 2 + (n-1)(5)