We know that if the left and the right pans are balanced, then the weight in both the pans are equal.
From the second balance, the weight of the red block is also 2 kg.
From the first balance, the weight of the green block is also 2 kg, since the weight of the green block and red block are equal.