How was the figure of Capital gain or loss derived on line 7 of form 1040-SR?

Please provide Schedule D and form 8949 details as well as the worksheet (if needed).