REG-S-corp tax. Distrubution is not included in Gross income?

I don't understand why the capital gain(excess amount above SH's basis) is not included in SH's gross income. Q. Evan, an individual, has a 40% interest in EF, an S corp. At the begging of the year, Evan's basis in EF was $2,000. During the year, EF distributed $100,000 and reported operating income of $200,000. What amout should Evan include in gross income? a. $38,000 b. $40,000 c. $80,000 d.$118,000 Answer: C Shareholders then pay tax on their pro rate share of income, regardlness of wheter or not any income actually was distributed to them. $200,000 X40%=$80,000 In my short thought, I understood that the 40% of $100,000 = 40,000 can be allocated to SH's gross income. So, $3,800 above basis $2,000 can be included in SH's gross income, as Capital gain. I don't know which part is wrong in my approach. Would you please correct what I am missing? I need your advise and wisdom, please.