The correct option is A x+3y+7=0
Given line is y=3x+5
Slope of the line = 3.
Let the equation of the required line be y=mx+c, where m is the slope and c is the y-intercept.
Since the required line is perpendicular to the given line,
m×3=−1
⇒m=−13
The equation of the required line is y=−13x+c.
The line passes through (-1,-2)
Thus, −2=−13×(−1)+c
⇒c=−73
Hence, the equation of the required line is
y=−13x−−73x
−3y=x+7
x+3y+7=0