A math problem I need help with