38. In a tournament where each pair of teams played each other twice, 4 teams participated. For each win, two points were awarded, for a draw - one, and for a loss - 0. The team that finished in last place scored 5 points. How many points did the team that finished in first place score?
38. There were 12 games in total $(3 \cdot 4=12)$. In each match, -2 points were awarded, and the total points were -24. Since $5+6+7+8=26>24$, this case is impossible.

Therefore, $5+6+6+7=24$. This means the winning team scored 7 points.