Explanation:
Subtract 2x: x - 7 = 5. Add 7: x = 12. Solving linear equations with variables on both sides is a core algebraic skill. Such equations frequently appear in word problems about ages work rates and number relationships in competitive exams. The key step is collecting like terms on each side methodically.