Please help with advice

Okay this is happening to someone else not me but idk how to help. So what do you do if somebody you dont even know messages you showing that they have your nudes and is going to send it to your whole family and friends. And this person somehow knows all your accounts and your family and friends accounts. They are also asking for alot of money in order to not release the photos. Please please i will take any advice!!