an empty barrel with one side opened is sold for 90$
a barrel of crude oil sold for 30$

the barrel is measurement unit only , which is estimated and crude oil sold in bulk and transferred by large oil ships or tubes.
its measured by rate of flow in a tube (cylinder) per time unit.