Finding the values of terms