"3 glasses of cognac" (type of brandy)
Joke is about formal/polite vs informal talk. 'Ты' is informal 'you' and 'Вы' is polite/formal 'you'. So, 'перейти на ты' is about switching from formal/polite...