A factory packed 9600kg of flour in to small bags and large bags. Each small bag contained 3kg of flour and each large bag contained 5kg of flour. 2040 small bags were packed. How many large bags of flour were packed?