Solving equations (for the first piece of text)