Whenever you're ready, walk me through how you'd approach this.
Derive a mathematical formula for a given scenario and then write pseudocode for the solution.