Two lines intersect to form a linear pair with equal measures. One angle has the measure 5x and theother angle has the measure (9y - 45). Find the values of x and y.