the toll t , in dollars , for a truck using a certain bridge is given by the formula t = 0.50 + 0.50 ( x − 2 ) , where x is the number of axles on the truck . what is the toll for an 18 - wheel truck that has 2 wheels on its front axle and 4 wheels on each of its other axles ?
n0 = 0.5
n1 = 0.5
n2 = 2.0
n3 = 18.0
n4 = 2.0
n5 = 4.0
t0 = n3 - n2
t1 = t0 / n5
t2 = t1 + 1.0
t3 = t2 - n2
t4 = n1 * t3
answer = n0 + t4
print(answer)