mirangod

This is a math question I found on the internet and decided to bring it into a game format.
Puzzle