Creating a statement to sum up foreign interest and dividends

I have 4 accounts in my Schedule B providing me dividends in 2021. 2 of the 4 accounts are foreign accounts. Since I need to declare  in my Form 8938 where the foreign interest and dividends are reported, I need a way to sum these dividends up somewhere so that I can put it in Part III of Form 8938.  Schedule B only shows the sum of all my interests (line 1) and dividends (line 5).

 

How do I then show in my returns the sum of foreign dividends?