Try to solve this math logic puzzle