Ответ:

Answer: badly

“Badly” modifies the verb “did.”