Raju bought vegetables for 10kg. Out of this, 2kg 500g is onions, 3kg 75g is tomatoes, and 5g is curry leaves. The rest is potatoes. What is the weight of potatoes?