which relation is a function?

Answer:
Neither of the given relations are functions.
Step-by-step explanation:
A function is a relation in which no two ordered pairs have the same x-values and different y-values.
The Vertical Line Test is often used to determine whether a graph represents a function. If a vertical line intersects the graph in all places at exactly one point, then the relation is a function.
To use the vertical-line test, imagine dragging a ruler held vertically across the graph from left to right. If the graph is that of a function, the edge of the ruler would hit the graph only once for every x -value.
Attached is an edited version of your given screenshot, in which I performed the vertical line test. As you can see, neither one of the graphs passed the vertical line test, as each vertical line drawn crosses the graph more than once.