Answer:
The answer is simple :) Hope this helps!
As the title suggests, a treasure, but more specifically alluded in the plot, it's the pirates'treasure . However, a treasure is always the symbol to depict the immorality of that age when Stevenson wrote this novel of adventures.
It is when the conflict gets resolved. In a mystery it is when mystery is solved.