2 is an x-value and also a y-value in the table, so 2 is part of both the domain and the range of the function.