May June 2024, D Math 4024, 22, Solution by Ferhan Mazher