An empty bottle weighs 20g and 60g when filled completely with water.What will it weigh when filled completely with mercury?

20÷60=0.3

by the way, what we worked with here was mass, not weight.

If this is a Physics course, your book should do mass in kg and weight in Newtons or mass in g and weight in dynes.
weight = mass * acceleration of gravity.
mass is the same on another planet, weight is different.

holds 40 g water

that is volume = 40 cm^3
since density of water is about 1 g/cm^3

mass = 20 + 40*density of Hg

density of Hg = 13.5 g/cm^3
so
mass = 20 + 40*13.5 grams

V=20/69=0.3

To find out the weight of the empty bottle, you divide the weight of the filled bottle by the weight of the water. In this case, the filled bottle weighs 60g and the empty bottle weighs 20g. So, you divide 20g by 60g, which gives you 0.3.

Now, to find out the weight of the bottle when filled with mercury, you have to multiply the weight of the filled bottle by the value you obtained earlier. In this case, the weight of the filled bottle is 60g and the value we obtained is 0.3. So, you multiply 60g by 0.3, which equals 18g.

Therefore, when the empty bottle is filled completely with mercury, it will weigh 18g.