Complex Math Problem Solved