Two liquids X and Y having the same mass are supplied with the same quantity…