Answer
See below.
Work Step by Step
a) There are $y$ values (5,4) that don't belong to a unique $x$, thus it won't pass the horizontal line test, hence it is not one-to-one.
b) There are no $y$ values that don't belong to a unique $x$, thus it will pass the horizontal line test, hence it is one-to-one.