NQ stock options exercised and sold in same year. Exercise is covered, sale is not. How to enter?

I exercised SOs early in the year. That amount shows up on the W-2 as taxable earnings. The sale later in the year was at a loss. So there are two cost bases in the same year - one for the exercise and a second one established upon exercise to be be basis for the sale. How do I enter this information correctly?