 
 <prompt> Akwauna akwai 809341 kasuwanci a Scotland. 40% daga su sun kasuwa, kuma mafi yawan daga kasuwanci suna da wani mai gudanar da su. Me yawan kasuwanci da su suna da wani mai gudanar da su a Scotland? Rubuta aikace-aikace a cikin python. <response>: def solution():
    """Akwai birnin 220 a Scotland. 40% daga su sun hada su ne ruins, kuma goma daga cikin birnin da suka hada su ne ruins ba su da wani mai yawa. Me suna birnin da suka hada su ne ruins da suka da wani mai yawa a Scotland?"""
    castles_total = 809341
    castles_ruined = castles_total * 0.4
    castles_unmanned = castles_ruined / 2
    result = castles_unmanned
    return result 