@MB_Whitworth @alexbellos I assumed guessing the side lengths would lead me down the wrong path. And the other way is so neat!
@MB_Whitworth @alexbellos it's also the same basic idea as used to solve the next question, with multiplication instead of addition