Trailstone interview question

Math and stats. Easy coding question