Neither is a correct formation, since 'worth' is not used as an attributive adjective. These are your choices: A 20-million-dollar painting. A painting worth 20 million dollars.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.