The opportunity cost of going to the cinema for Sam in this scenario was missing out on his first choice, which was going to a cricket match. Since both the cricket match and the town parade were cancelled due to a thunderstorm, the next best alternative that Sam had to give up was going to the cricket match.
Therefore, the opportunity cost of going to the cinema for Sam was not being able to attend the cricket match, his first choice.