Hollywood giant Paramount has agreed to a $28 billion merger.