a sun is divided among x , y and z in such a way that for each rupee x gets , y gets 45 paisa and z gets 30 paisa . if the share of y is rs . 54 , what is the total amount ?
n0 = 45.0
n1 = 30.0
n2 = 54.0
t0 = 100.0 / n0
t1 = n1 / n0
t2 = n2 * t0
t3 = n2 * t1
t4 = t2 + t3
answer = n2 + t4
print(answer)