pull (something) out of a hat

получить что-либо, как будто бы по волшебству

The young man had applied for a grant and was fortunate to pull it out of a hat.

Другие идиомы: