https://scratch.mit.edu/discuss/post/9355285/ another solution with algebraic formula (a+c)(2-a-c) or (a-c)²