8 years ago , p was half of q ' s age . if the ratio of their present ages is 3 : 4 what will be the total of their present ages ?
n0 = 8.0
n1 = 3.0
n2 = 4.0
t0 = n1 + n2
t1 = n0 / 2.0
answer = t0 * t1
print(answer)