The problem is called a double coincidence of wants, where each person to a trade must want what the other person has.