Extremely Complicated Math Problem