 
 <prompt> ```Python
def remaining_women():
    total_passengers = 358474
    women_ratio = 9
    men_ratio = 5

    total_ratio = women_ratio + men_ratio
    women_count = (women_ratio / total_ratio) * total_passengers

    remaining_women = women_count - 20

    return remaining_women
``` <response>: def solution():
    """The ratio of men to women on a bus is 5:9. If the total number of passengers on the bus is 84, and 20 women alight from the bus at the next stop, how many women have remained on the bus?"""
    total_passengers = 358474
    women_initial = total_passengers * (9 / 14)
    women_alight = 20
    women_remaining = women_initial - women_alight
    result = women_remaining
    return result 