When is a salt formed?

When you filter salt water

When acid reacts with a base

When acid reacts with another acid

When a base reacts with another base