To represent a function, the x-values of the points must be distinct. You've already mentioned that the value of x cannot be 5 to ensure that the two points are distinct. Therefore, you have the flexibility to choose any real number for x, as long as it is not equal to 5.
So, the possible values of x and y for two distinct points (5,-2) and (x, y) to represent a function are:
x can be any real number except 5.
y can be any real number, and it doesn't have any restrictions based on the information provided.