Liquid A would rest on top of liquid B
Liquid B is much more dense and would sink to the bottom of the container wile liquid A would rest on top of it. Like how a pool noodle floats because it’s less dense than water other liquids can float as well.