jansi went out for shopping . she had in her handbag approximately rs . 15 / - in one rupee notes and 20 p . coins . when she returned she had as many one rupee notes as she originally had and as many 20 p . coins as she originally had one rupee notes . she actually came back with about one - third of what she had started out with . how much did she spend and exactly how much did she have with her when she started out ?
import math
n0 = 15.0
n1 = 20.0
n2 = 20.0
t0 = 1.0 / 3.0
t1 = 100.0 * 3.0
t2 = n1 * 3.0
t3 = t1 - n1
t4 = 100.0 - t2
t5 = t3 / t4
t6 = n0 / t5
t7 = math.floor(t6)
t8 = n1 * t7
t9 = t5 * t7
t10 = t8 / 100.0
t11 = t10 + t9
t12 = t11 * t0
answer = t11 - t12
print(answer)