def score_property(property_name, recipe, ingredients):
    """Score property_name according to spoons of ingredients in recipe."""
    score = 0
    for amount, properties in zip(recipe, ingredients.values()):
        value = properties[property_name]
        ingredient_value = amount * value
        score += ingredient_value
    return score