Retirement tax questions

Hello, 

Which form is suggested to enter first 1099-B or 1099-R ? I just want to make sure to enter correctly.

 

TY