First we need to create the system of equations. For a given point P, we know that:

Where m is the slope. Then we can create a sistem of equations to find m:

Now we let the y's alone in the left-hand side:

Now we can equal the two equations:

Apply distributive property and solve for m:

Now that we know m, we can go back to the equation of a line that passes through point P, and use P = (3, 5)

The equation of the line with the points (3, 5) and (6, 9) is y = 4/3x + 1