Finding slope from a table