Meaning

"What does that have to do with the cost of tea in China?"

What does it mean?

It means "What does that have to do with what we're talking about? How is it relevant?"