The table shows some input and output values: Which tables represent functions

In mathematics, a function[note 1] is a binary relation between two sets that associates every element of the first set to exactly one element of the second set.
In this case, the function corresponds to Only Table B.
Input Output
6 1
7 2
8 7
9 5