I know how to do the equation for one line in a shape, but how do I find them for two?

whatever you do for one line, do for the other. If you have two points, they define a line.