39999999989 in words is written as :

Billion Million Thousand Nine Hundred and Eighty Nine