Twitter has agreed to be purchased by Elon Musk for $54.20 a share or a total of $44 billion. The transaction is expected to close sometime this year.