Two-thirds of the dairy cattle on a farm are in the barn. One-fourth of the beef cattle are in the barn. There are 24 dairy cattle and 16 beef cattle in the barn. How many more beef cattle are on the farm than dairy cattle?