Table A represent a function, and Table B does not.
Why?
Table to be a function, need to satisfy following conditions (look at the .jpeg image attached with this answer):
1. condition: In first circle, EVERY element has to be connected with SOME of the elements in second circle
2. condition: In first circle, there MUSTN'T be an element that has MORE THAN ONE connection with elements in second circle
-----------------------------------------------------------------------------
Table A satisfies BOTH of these conditions; that is why table A is indeed a function.
Table B satisfies FIRST condition but it does not satisfy the SECOND condition, that is why it is NOT a function.