Solution For Math Problem