In a set of prime and composite numbers, the composite numbers are twice the number of prime numbers and the average of all the numbers of the set is 9. If the number of prime numbers and composite numbers are exchanged, then the average of the set of numbers is increased by 2. If during the exchange of the numbers the average of the prime numbers and composite numbers individually remained constant, then the ratio of the average of composite numbers to the average of prime numbers (initially) was