Whoa, 4th grade math problems got hard! I'm not sure how I'd tackle that one myself.
Are you sure this is 4th grade level?
https://aistudio.google.com/app/prompts?state=%7B%22ids%22:%...
Though this is obviously not something I would expect a 4th grader to solve.