How to arrange the schedule of the three-person basketball competition?

It's simple. Nine teams were divided into three groups by drawing lots. First of all, they played a single round, and the first place in each group and the second place with the best performance in the group were qualified for the semi-finals and finals.

Timetable:

Nine teams draw lots, group A 1, 2, 3, group B 4, 5, 6, and group C 7, 8, 9.

Group stage:

( 1) 1-2

(2)4-5

(3)7-8

(4)2-3

(5)5-6

(6)8-9

(7)3- 1

(8)6-4

(9)9-7

Semifinal:

(10)A 1- The best group comes second.

( 1 1)b 1-c 1

Final:

(12)( 10) Winner -( 12) Winner