The average of 2, 7, 6 and x is 5 and the average of 18, 1, 6, x and y is 10. What is the value of y?