Sorry, it's not clear to me. I'll try to restate the problem.

You have a constant list where each entry contains three numbers. Given two numbers, if there is a list entry where the first two numbers match the two given numbers, you want a function to return the third number in that list entry.

Is that right?

If there is no match, what should the function return? The null value None?

You have a constant list where each entry contains three numbers. Given two numbers, if there is a list entry where the first two numbers match the two given numbers, you want a function to return the third number in that list entry.

Is that right?

If there is no match, what should the function return? The null value None?