Hard 6th Grade Math Problem