A and B have an 8 gallon cask full of wine, which they wish to divide into two equal parts, and the only measures they have are a 5-gallon cask and a 3-gallon cask. How shall they make the division with these two vessels?