Two big bags of sugar plus one small bag of flour add up to a total of 12 kg. The difference between the weight of one bag of sugar and one bag of flour is 2 kg. What is the weight of a bag of sugar and a bag of flour?