There's a whole science to math modeling of empirical data - polynomial curve fits, etc. etc. I used to make a good wage baffling my management with such b******t.
The easiest is to make x-y-z tables in Excel or some other spreadsheet, and have an interpolation (double interpolation, probably) routine to find the answer (z) based on (x,y) givens.