bail
Money paid to get out of jail until a trial.
To bail means to remove water from a boat that's leaking or taking on water, usually by scooping it out with a bucket or other container. When sailors bail frantically during a storm, they're trying to keep their boat from sinking. The word can also mean escaping from a difficult situation: if you bail out of plans, you're backing out at the last minute.
In the legal system, bail is money paid to a court as a guarantee that someone accused of a crime will return for their trial. If they show up as promised, they get the money back. If they don't, they lose it. The idea is similar to leaving a deposit when you rent something: you're putting up money to prove you'll keep your word.
The phrase bail someone out means to help them escape trouble, like when a friend explains to the teacher why you're late for class, potentially bailing you out of detention. In business, governments sometimes bail out struggling companies by giving them money to prevent them from failing.
The common thread through these meanings is the idea of rescuing something or someone from a bad situation, whether it's water threatening a boat, legal trouble, or any other kind of difficulty.