times = [[10, 14], [15, 16], [18, 22]]
answer = 0
for start, end in times:
parking_time = end - start
if parking_time <= 3:
answer += 5000
else:
answer += 5000 + (parking_time - 3) * 2000
print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: