Doubt relarting to error term

Consider the scenarios described below for a point Xi:

a) It lies on the correct side of the margin

b) It lies on the margin line

c) It lies on the wrong side of the margin

d) It lies on the wrong side of the decision boundary

Choose the option that correctly illustrates the value of ei in the four cases, respectively:

How are we predicting error to be 1 ?
And what do we mean by margin line ?w’x+b=1 ?