27=18+(n-1)d
There is no single solution because there are 2 unknows and only one equation.
There are an infinite number of solutions.