Consider an object that floats in water but sinks in oil. When object floats in water, half of it submerged. If one slowly poured oil on the top of the water surface so that it completely cove the object, the object
let volume of block=v
let density of oil =ρ0
density of water =ρ
Initial Buoyant force on block =ρv2g
when oil is added on top;
final bouyant force =ρv2g+ρ0vg2
As you can see, overall force on block
has increased. Therefore block will
move upwards