Added math solution for question #3.