In the first half of the season a football team participating in the local league won 40% of its matches. It then went on to win all its matches except two in the second half of the season. If it is known that for the entire season the percentage of matches won by the team was 66.67% and that the team played double the number of matches in the second half of the season as compared to the first half of the season then how many matches did the team play in the first half of the season?
(A) 2
(B) 5
(C) 10
(D) 15
(E) 20
(A) 2
(B) 5
(C) 10
(D) 15
(E) 20