Hard Math Problem With Solution