Let the three consecutive terms be a−d, a, a+d.
Sum condition:
(a−d)+a+(a+d)=27
3a=27⟹a=9
Product condition:
(a−d)(a)(a+d)=504
9(a2−d2)=504
9(81−d2)=504
81−d2=56
d2=25⟹d=±5
Taking d=5: the terms are 4,9,14.
(Taking d=−5 gives 14,9,4 — the same numbers in reverse.)
The three terms are 4,9,14.