thank you in advance

how do i solve or come up for things like this for example:
write an equation for the line that passes through (3,-6) and (8,9)