Merck posts mixed results for third quarter