Math Problem With Infinite Solutions