結果 : maximum and minimum value of a linear function