Solving equations with specific values