The sum of first q terms of an A.P. is 162. The ratio of its 6th term to its 13th term is 1.: 2. Find the first and 15th term of the A.P