def f(a):
  s = sum(a)
  return list(zip(
    a,
    map(lambda x: round(x / s * 14000, 2), a)
  ))

print(f([30, 20, 15, 15, 2.5, 10, 10, 20]))