How economics solves a 500-year-old shipwreck mystery