https://delphiayundt.blogspot.com/2022/04/simplifying-expressions-solve-and-color.html