Looking for the word/idiom for the feeling/emotion where one feels jealous and accomplished at the same time.
For context, Person ABC (hereinafter, 'ABC') introduced and taught somebody (hereinafter, 'DEF') the basics of buying and selling stocks. Then after some time, ABC asked how are things going with the buying-and-selling, and found out that DEF earned a lot of money from the market. Now ABC feels both jealous and accomplished at the same time.
I don't think that this is gloating as it's just negative. Or perhaps a word (if there is) related to the feeling that masters have when their students surpass them? Imagining it as an equation, it's like:
Jealousy + Feeling of Accomplishment = ???