the ages of patrick and michael are in the ratio of 3 : 5 and that of michael and monica are in the ratio of 3 : 5 . if the sum of their ages is 148 , what is the difference between the ages of patrick and monica ?
n0 = 3.0
n1 = 5.0
n2 = 3.0
n3 = 5.0
n4 = 148.0
t0 = n0 * n0
t1 = n1 * n0
t2 = n1 * n3
t3 = t0 + t1
t4 = t3 + t2
t5 = n4 / t4
t6 = t5 * t2
t7 = t5 * t0
answer = t6 - t7
print(answer)