How to solve equations - showing working