If 3,x,y,18 are the terms of arithmetic progession find the value of x and y

The common difference is

d = (18-3)/3 = 5