a certain sum of money is divided among a , b and c such that a gets one - third of what b and c together get and b gets two - seventh of what a and c together get . if the amount received by a is $ 15 more than that received by b , find the total amount shared by a , b and c .
n0 = 15.0
t0 = n0 * 3.0
t1 = n0 * 2.0
t2 = t0 * 2.0
t3 = t2 + t1
t4 = n0 + t3
t5 = t3 + t4
t6 = t4 * 3.0
t7 = t6 - t3
answer = t5 + t7
print(answer)