Both the quantities have different units 4 kg and 400 g.
So, convert 4 kg to grams.
We know that, 1kg = 1000g [To convert a larger unit (kg) to a smaller unit (g) we multiply by the conversion factor.]
Therefore, 4 kg = 4 × 1000 g
Now, 4000g - 400g = 3600 g