TeX source:
=50*10000+40*(10000/400)+5*(400/2)=502000