Where does the data for line 43300 on Form T2209 of the 2024 Canadian Income Tax Return come from?

I believe that it must come from various T3 and T5 slips but am not sure.