Sean:
• Edad de A = x
• Edad de B = y
Por condición:
i) x/9 = y/5 + 2
x/9 - 2 = y/5
5x/9 - 10 = y .....................(1)
ii) 2y = x-15
y = (x-15)/2 ..................(2)
Igualamos (1) y (2):
5x/9 - 10 = (x-15)/2
10x/9 - 20 = x - 15
10x/9 - x = 20 - 15
(10x-9x)/9 = 5
x = 9(5)
x = 45
Pero, si x = 45 , entonces: y = (45-15)/2 = 15
En conclusión:
• Edad de A = x = 45 } ← Respuesta
• Edad de B = y = 15 }