Solution
To get the gold in block (2,4), we need to
excavate blocks (1,3), (1,4), (1,5) and (2,4).
Revenue = $500, Cost = $400, Profit =
$100. Take block (2,4).
To get the gold in block (3,1), we need to
excavate blocks (3,1), (2,1), (2,2), (1,1),
(1,2) and (1,3). Revenue = $500, Cost =
$500*, Profit = $0. Don’t take block (3,1).
* Assuming (1,3) Already Excavated