The average of x consecutive integers is n and the average of the next y consecutive integers is n + 6. Find the relation between x and y.