sales treatment for shares received in an Agilent spinoff on ESPP shares

In 2014,Agilent Technologies completed the spinoff of Keysight Technologies and for all shares owned distributed 1 shares of Keysight for every 2 shares of Agilent. This was done for all shares owned which included my ESPP shares.  In 2021 I sold some of the Keysight ESPP shares and the 1099B identified the shares  as acquired through the employers stock purchase plan. I still own all corresponding  the Agilent ESPP shares.  How do I record the sale?  This was a qualifying disposition but do I have to treat these additional shares as ESPP shares?  How would I allocate to determine the compensation income?

 

Thanks,

LM