guy 1 and guy 2 both give whatever they're trading to the middleman, then once the middleman has the items/cash/whatever else from both people, he gives them to their new owners (guy 1's $ goes to guy 2, and guy 2's 10m goes to guy 1). sorry if that was confusing.