Reads equation with/without variable x, and solves for x if there is x