Merrily has 2 different meanings across 1 category:
Adverb
in a joyous manner
"they shouted happily"
In a cheerful or merry way.