A straight line makes intercepts of -3 and 2 on the x- and y- axes…