Forming and solving equations