Given that, the line y=−3x+b is passing through point B(5, 2).
Put x=5 and y=2 in the given equation to the value of b, we have
or b=17.
Now, the given equation become
y=-3x+17
This is the equation of a straight line, so find any two points on the line and join them to get the graph of the line.
One point is already given, i.e B(5, 2).
Get any other point, suppose, for x=0,
.
So, the other point is (0,17).
Now, denote both the points of the cartesian coordinate system and join them to get the graph as shown in the figure.