Use this following information to answer this question. Compound X was boiled with concentrated hydrochloric…