The first step is to look at how many x-intercepts have the function in the graph:
We have 3 intercepts in the x-axis
So we can discard the option which a different number of intercepts than 3, so we only keep two options now, a or b
Now remember that we discard these options equalizing the function