The 4th term of an a.p is 27 and the common difference is 6 and the sum of the 1st and 4th is 42, what is the third term? mathematics question

Hmmmm. It appears that

a1 = a4 - 3*6 = 27 - 18 = 5
a1+27 = 42
Both cannot be true
a3 = 27-6 = ___