The rival team won twice as many as the home team who won 3 matches so they won 2*3 = <<2*3=6>>6 matches
They both drew 4 matches each for a total of 2*4 = 8 matches
The total number of matches played is 3+6+8 = <<3+6+8=17>>17 matches
#### 17