Drawing line from any linear equation like 2x+3y=8

i can’t understand the logic behind drawing a line based on a equation that we put in a textbox with actionscript.

example like drawing a line from the equation 2x+3y=8 or 5x+7Y=17 that we put in the textbox dynamically.