If the sum of three numbers which are in A.P is 27 and the product of first and last is 77, then the numbers are