747
Britannia RULEs The Waves
(feddit.de)
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
This sounds like a problem that would be covered in an algorithms class.
Something something knapsack problem, dynamic programming, something something