OK, so I am new to "advanced" excel... I need help you guys! please!

I am trying to get the value for the shipping cost based on two criteria and need to obtain the highest value based on these two ranges. Example:

Table 1: m3 (gives the shipping costs based on the volume of the shipment):
up to :
1.5 m3 = $165
4 m3 = $185
7 m3 = $195
9 m3 = $205
12 m3 = $215
15 m3 = $225
18 m3 = $235

Table2: kg (gives the shipping costs based on the weight of the shipments):
up to:
500kg = $165
1500kg = $185
2500kg = $195
3500kg = $205
4500kg = $215
5500kg = $225
6500kg = $235
7500kg = $300
9500kg = $370

So, based on these tables, If I have a shipment of 1100kg and 5m3, it will give me the costs $195 based on table1 (because based on table 2, the result by kg is $185, and thus I should use the HIGHER value)

I am going crazy with this and looked in a lot of threads but can't figure it out.

Thanks for your help.