 
 <prompt> Ní ilé bẹ́kẹ́rì, ọkàn ni 40 lẹ́sè pẹ̀lú awọn ẹran ti o ni lọ́ọ̀dù pẹ̀lú awọn ẹran ti Sam rọ lọ́nà ńjẹ́ ńjẹ́. Tó bá ti Sam ni ọkàn lọ́nà ńjẹ́ lọ́nà ńjẹ́, níbẹ̀ ni ọkàn lọ́nà ńjẹ́ ti bẹ́kẹ́rì ni? Ṣẹlẹ̀ fún python. Níbẹ̀ fún. <response>: def solution():
    """A bakery has 40 less than seven times as many loaves of bread as Sam had last Friday. If Sam had seventy loaves of bread last Friday, how many loaves of bread does the bakery have?"""
    sam_loaves_initial = 70
    sam_loaves_multiplier = 7
    sam_loaves_total = sam_loaves_initial * sam_loaves_multiplier
    bakery_loaves_subtraction = 40
    bakery_loaves_total = sam_loaves_total - bakery_loaves_subtraction
    result = bakery_loaves_total
    return result 