When two lines are perpendicular the slope of one is the negative inverse of the other, so the negative inverse of -1/2 is 2. Both lines pass through the origin so there is no other intercept and the equations of the lines are y=2x (the equation of the second line) and y=-x/2 (first line).