PA 401k tax

How do I figure out basis of retirement income in PA? No explanation makes enough sense.

401k from employer. 

 

1 Roth payment. 

1 Traditional.