In a setup where liquids are poured into a glass and they separate into distinct layers, the liquid with the highest density will be at the bottom of the glass, while the liquid with the lowest density will float to the top. Therefore, the correct answer is:
B. the layer at the bottom of the glass