A rectangular swimming pool with dimensions 12 meters by 18 meters is surrounded by a pavement of uniform width x meters. Find the area of the pavement, A, as a function of x.