Finding slope from tables