X has 1.2 kg to start and 1.2 - x after some is removed
Y has 7.2 to start and 7.2 - x after removal
Y is 7x as big as X : 7(1.2 - x) = 7.2 - x
8.4 - 7x = 7.2 - x
Subtract 7.2 from each side
1.2 = 6x
x = .2
You should now plug in this answer to the original problem and make sure it makes sense.