For the 1st one it's not a relation. The x value
5 is being repeated. In a function , x values don't repeat . It doesn't matter when y values is repeated or not it is still a function. For the 2nd one, this is a relation because the x values aren't repeated . Hope this helps.