tricks to find slope and intercept