Profitably has 2 different meanings across 1 category:
Adverb
in a productive way
"they worked together productively for two years"
In a profitable manner, in a way that achieves profit or gain.