Solving equations with specific numbers