The correct option is D y + x - 3 = 0
The line makes an intercept of 3 unit on positive x-axis, so it passes through the point (3,0)
The line also passes through point (2,1)
Equation of a line passing through point (x1,y1)and (x2,y2) is given by
y−y1 = y2−y1x2−x1(x−x!)
Substituting the value we get
y−0 = 1−02−3(x−3)
⇒ y−0 = 1−1(x−3)
⇒ y−0 = -1 (x-3)
⇒ y−0=−1(x−3)
⇒ y−0=−x+3
⇒ y+x−3=0