For each account, compute the debit-to-credit ratio (total debits ÷ total credits). Then return two company numbers: the average of those ratios as avg_of_ratios and the ratio of company totals as ratio_of_totals, both rounded to 3 decimals.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.