 
 <prompt> Mel n lo ọna 900-watt air conditioner fun 8 hours n lọ. Nítorí náà, gbogbo wákà ni AC n lo 900 watts ti ẹya. Tí o bẹrẹ irọ ọjọ tí o lọwọ lori air conditioner ni 5 hours n lọ, bíi ṣe le ṣe ọkan kilowatts ti electric energy o yọ ni 30 ọjọ? Ṣẹda iṣẹlẹ ní python. <response>: def solution():
    """Mel n lo ọna 900-watt ti o n looju air conditioner ni 8 hours ni ojo kan. Nje ki o ba to ọna ti o n looju air conditioner ni 5 hours ni ojo kan, bawo ni o le fi kilowatts ti electric energy wa ni 30 ojo?"""
    watts_per_hour = 900
    hours_per_day = 8
    hours_reduced = 5
    days = 30
    watts_per_day = watts_per_hour * hours_per_day
    watts_reduced_per_day = watts_per_hour * hours_reduced
    watts_saved_per_day = watts_per_day - watts_reduced_per_day
    watts_saved_total = watts_saved_per_day * days
    kilowatts_saved_total = watts_saved_total / 1000
    result = kilowatts_saved_total
    return result 