If the sum of three consecutive terms of an AP is 51 and the product of first and third term is 273. Find the third term.