pull out a from b