The equation of a line is y=mx + b where x is the coordinate in the x-axis, y is the coordinate in the y-axis, m is the slope of the line and b is the y-intercept.
For perpendicular lines, the slope of the second line is the negative reciprocal of the first line,
first line: m
second line: -1/m
For this case, if the slope is 3 then the negative slope is -1/3.
If both lines intersect at the origin then b=0
The equation of the second line is then, y=-1/3x