we know taht
the explicit formula for an arithmetic sequence is equal to
In this problem we have that
we know that
the distance betwee consecutive numbers is 6
that means
the common difference is d=6
substitute the value of d in the first equation
Equete both equations