A piece of stone loses its 1/5 th of weight when it is weighted in water and a piece of iron loses 1/10th of its weight under the same condition. The total weight of the both materials in air is 280grams and in water is 240 grams. Find the weight of both the materials separately.

If I let their respective weights in air as x and y I get
x+y= 280
But the second equation is tough or is there a different way to do it?

.8x + .9y = 240