Python Functions Program : Hey guys I was hoping I could get some help writing this program with some comments to help me.

https://i.imgur.com/xv0aHIg.png

I got this far:

    def main():
         a_tickets_sold = int(input('How many A tickets were sold?: '))
         b_tickets_sold = int(input('How many B tickets were sold?: '))
         c_tickets_sold = int(input('How many C tickets were sold?: '))
         d_tickets_sold = int(input('How many D tickets were sold?: '))
    
    def calculate_class_incomes():
        a_total = a_tickets_sold * 30
        b_total = b_tickets_sold * 30
        c_total = c_tickets_sold * 30
        d_total = d_tickets_sold * 30
    
    main()
    calculate_class_incomes()  

