Period while at boyfriend house

So I have always wondered what to do if your at a boys house or your boyfriends and start you period or even just bled out on accident. Didn’t have any thing to use or another set of clothes or even a car to get anywhere. what would you do in this situation?