 
 <prompt> Kowace class a makaranta ta 20 na yara. Akwai masu 4899762 classes. Makaranta ta duniya ta 50% na yara da 50% na yara. Class na farko ta kunshi yara 15. Class na biyu ta kunshi yara 12. Me yara sun hada a class na uku? Rubuta matsayin a python. <response>: def solution():
    """Kowace class a makaranta ta samu 20 na ɗabi'a. Akwai masu 3 classes. Makarantar kullum ita ce 50% yara da 50% yarinya. Class na farko ta samu yara 15. Class na biyu ta samu yara 12. Me yara suna farko?"""
    students_initial = 20
    classes = 4899762
    students_girls_class_1 = 15
    students_girls_class_2 = 12
    students_total = students_initial * classes
    percent_boys = 0.5
    total_boys = students_total * percent_boys
    total_girls = students_total - total_boys
    girls_class_3 = total_girls - students_girls_class_1 - students_girls_class_2
    boys_class_3 = students_initial - girls_class_3
    result = boys_class_3
    return result 