Step 1: Form Equation
Friend 1 = x. Friend 2 = 25 - x.
5 years ago: (x - 5) and (20 - x).
(x - 5)(20 - x) = 50
20x - x² - 100 + 5x = 50
-x² + 25x - 150 = 0 →
x² - 25x + 150 = 0
Step 2: Check Discriminant
D = (-25)² - 4(1)(150) = 625 - 600 = 25
D > 0, so real roots exist.
Step 3: Solve
x = (25 ± 5)/2. x = 15 or x = 10.
Yes, possible. Ages are 15 years and 10 years.