What is the opportunity cost if I choose the option of highest value
The opportunity cost of any decision is the value of the next-best alternative forgone. 

So in this case, if you choose \$40, your opportunity cost is \$30, because that's the value of the next-best alternative forgone. 

(Implicit assumption: These are your only three alternatives and you must choose one of these three.)