A gentleman had a bottle containing 12 pints of wine, 6 of which he was desirous of giving to a friend; but he had nothing to measure it, except two other bottles, one of 7 pints, and the other of 5. How did he contrive to put 6 pints into the 7-pint bottle?