A wizard named Nepo says “I am only three times my son's age. My father is 40 years more than twice my age. Together the three of us are a mere 1240 years old.” How old is Nepo?
n=3*s
f=40+2n
n+s+f=1240
so, n+s+40+2n=1240
put the value of n
3s+s+40+2(3s)=1240
10s+40=1240
10s=1240-40
10s=1200
s=120
now put the value of s
n=3s
n=3*120
n=360
answer 360 years
n=3*s
f=40+2n
n+s+f=1240
so, n+s+40+2n=1240
put the value of n
3s+s+40+2(3s)=1240
10s+40=1240
10s=1240-40
10s=1200
s=120
now put the value of s
n=3s
n=3*120
n=360
360 years old
Nepo’s son age = x
Nepo’s age = 3x
Nepo’s father age = 2*3x + 40
x + 3x + 6x + 40 = 1240
10x = 1200
x = 120
Nepos age = 3* 120 = 360 years