They both did badly.
The boy did badly, but the girl did well.
The boy did well, but the girl did badly.