Answer:
functions can only have one output per input there are 2 inputs of 5 and they have different outputs. You would need to get rid of (5,7) or (5,8).