You'll need to present the "other line" so that you have a reference.
If you start with y = mx + b, the slope of a line perpendicular to this line is -1/m.
Then the equation of the new line is y = (-1/m)x + c, where c is the y-intercept of the new line.