Unless they say the phrase "what should I do?" just listen to them rant
Honestly, as a girl who likes to just rant, offering advice when they don't want it will just make them more angry, and angry at you
Most of the time girls don't want people to necessarily 'fix things' they just want to rant for a bit