If you typed it the exact way it's written, then it's incorrect. This is because when a new person is speaking, you need a new line. This is the correct version.
"The game will start soon," said the coach.
"Can we warm up first?" asked the team captain.
"Yes, you have about ten minutes," the coach replied.