combine a bunch of values to work out expressions that give a desired result