Opening and Closing stock entries

Profit and Loss Report ( Adjustment of Opening and Closing Stock )

How to achieve above point?