Income Tax : Calculating Net Income (loss)

Please explain, how do we calculate the Net Income (Loss) for this question. Q20

Please also explain using the same example above, how over the three year period, changes in the valuation allowance reduced the cumulative income taxes by $167,000. Q22

@S2000magician can I request your assistance on these questions please?