Viridien interview question

Simple math questions.