Modeling equations and solving for variables