what should i do if the equation look somthing like -2x=4y
??
If the line passes through (0, 0) then you need to get another point. Common sense would suggest that you should substitute a simple value of x to get that point eg. x = 1 => y = -1/2 so that (1, -1/2) is a point.