Distance formula.
Or, you can find a vector that points from an arbitrary point of one line L1 and ends on an arbituary point of the other line L2, then find the angle between vector of L1 and vector used from L1 to L2, then use trigonometry.
Or you can use the fact that for the dot product of two vectors u, v, then:
u*v = |u||v|cos(theta). From the dot product you can derive the distance formula though.Let u be a vector from an arbitrary point in L1 to one in L2, and v be the vector of L2, then:
u*v/|v| =|u|cos(theta) = distance between the lines.