X is a privately held company, so you cannot invest in it directly. However, you can invest in some other companies owned by Elon Musk, such as Tesla.