finding slope and y intercept