Two liquids L1 and L2 are contained in a U – tube. The height and…