Scopely interview question

math balancing stuff, excel formulas