Required:
For each of the following cases, determine the amount of capital gain or loss to report in each year (after taking into account any applicable carrybacks) and the capital loss carryforward to 2023, if any.
Capital gain or loss for year indicated
Corporation 2017 2018 2019 2020 2021 2022
A $ 4,000 $ 7,000 $ (10,000) $ 5,000 $ 3,000 $ (1,000)
B 5,000 3,000 3,000 4,000 (20,000) 2,000
C 5,000 9,000 (3,000) 2,000 (20,000) 8,000
D (50,000) 7,000 3,000 11,000 10,000 2,000