Two lines intersect to form a linear pair with equal measures. One angle has the measure 3x° and the other angle has the measure (9y − 18)°. Find the values of x and y.