Problem Statement
The sum of two numbers is 26 and their difference is 4. What is the larger number?
Explanation
Let the numbers be x (larger) and y (smaller). Then x + y = 26 and x − y = 4. Add the equations: 2x = 30 ⇒ x = 15.
Code Solution
SolutionRead Only
x+y=26, x−y=4 ⇒ 2x=30 ⇒ x=15
