The value of h3(x) for each argument x can be found from h1(x) and h2(x), without looking at other arguments. Now, given two numbers that are don't exceed some real cost, you need to find a number that is not smaller than any of those two numbers, but still does not exceed the same cost.