"Harry y Ron se las arreglaron para chocar con él, en la primera mañana."

The English translation is:

“Harry and Ron managed to get on the wrong side of
him on their very first morning.”

I know that arreglarse can mean “to manage” but I can’t figure out why “las” is in that structure. I’m confused.

Thanks.