def levain_flour_weight(recipe, total_weight):
    """
    Figure out the weight of flour in the levain from the total weight.
    """
    total_liquid = sum(recipe["liquid"][i] for i in recipe["liquid"])
    flour = total_weight / (1 + total_liquid / 100)
    return flour