Find the slope and intercepts from an equation