For the first problem, the answer you have (I believe) is correct. The verticle line test proves that the values provide a function.
Now, for the second problem (with the tables), D would correct.
The baseline of functions: EVERY ACCEPTABLE INPUT HAS A UNIQUE OUTPUT. This is correctly applied to both of the problems' correct answers.
Hope I could help you out! If my answer is incorrect, or I provided an answer you were not looking for, please let me know.
However, if my answer is explained well and correct, please consider marking my answer as Brainliest! :)
Have a good one.
God bless!