X : Jane didn’t pass her exam.

Y : Oh, I am sorry to hear that.

From the underlined words we know that the second speaker expresses her …
Answer :
Shympathy

the same statement “oh, I am sorry to hear that”, which shows sympathy.

  X : This is your purse, madam. I got it over there.