generally, a function is expected to map only one y value for each x value. As you have two values for each input, you need to redesign your problem. There are two workarounds for this.
You can use two separate equations, that is, and .
Alternately, you can reverse the dependency. That is, use .