I have a little problem...I have 4 items and I need to pick the best item...after I get 2 values from a textbox....
Item Value1 Value2
A 256 8
B 512 14
C 512 28
D 1024 60

I need to pick an item which can handle the number...
for example...

Value1 = 100 and Value2 = 6 Returns Item A
Value1 = 100 and Value2 = 10 Returns Item B
Value1 = 600 and Value2 = 2 Returns Item D

Can anyone give me a good algorithm to solve this?