In a setup where liquids are poured on top of each other and separate into layers, the order of the layers is determined by their densities. The liquid with the lowest density will float on top, and the liquid with the highest density will settle at the bottom.
Thus, if the liquids are layered, the liquid that had the lowest density will be found at the top of the glass.
Therefore, the answer is:
B. the layer at the top of the glass