Solving equations for unknown quantities