You have to start working for company Y then apply for a transfer to Company X.