a is two years older than b who is twice as old as c . if the total of the ages of a , b and c be 17 , the how old is b ? a . 7 b . 8 c . 9 d . 10 explanation :
n0 = 17.0
n1 = 7.0
n2 = 8.0
n3 = 9.0
n4 = 10.0
t0 = 1.0 + 4.0
t1 = n0 - 2.0
t2 = t1 / t0
answer = t2 * 2.0
print(answer)