Seemingly crazy (?) maths problem. Help wanted pls

well I’ll be damned, you sir, are a math God. I tip my hat to you :tophat:
This is the solution. Yass.

Though I will admit that math gave me quite a scare.

But thank you so much! You have my eternal respect! <3