Ronald scored 34 points in a basketball game. In the first quarter he scored x points and in the second quarter, he scored 4 more than half of the points he scored in the first quarter. If he did not play for the rest of the game, how many points did he score in the second quarter?