Math Problem when I was in 4th year high school.