Equations and solving for a variable