The total surplus is A. $30.
The surplus is the amount of money that is let over after all requirements have been met/paid. This can also be an excess amount of production that is over the amount of money demanded. The opportunity cost is $30, which is what Tom values his time being worth that he is not getting due to dog walking.