Math Solution for Competitive Exam