,The cost drivers are used to allocate overheads to the products as follows:Number of machine hours: (120,000/8000) = $15 per machine hourXY: (5,000 * 1) + (10 * 1) + (20 * 1) = 35ZM: (3,000 * 1) + (10 * 1) + (40 * 1) = 50XY: 35 * 15 = $525ZM: 50 * 15 = $750Therefore, the overheads allocated to each product are as follows:XY = 525ZM = 750Total cost per unit produced for each productDirect materials Direct labor Overhead Total cost per unit producedXY 100,000 100,000 525 725ZM 80,000 40,000 750 870Under direct labor as a basis for allocating overheads:XY: Direct labor costs/total direct labor costs = (100,000 / 140,000) = 0.714ZM: Direct labor costs/total direct labor costs = (40,000 / 140,000) = 0.286Therefore, the overheads allocated to each product are as follows:XY: $200,800 * 0.714 = $143,092ZM: $200,800 * 0.286 = $57,708Total cost per unit produced for each productDirect materials Direct labor Overhead Total cost per unit producedXY 100,000 100,000 143,092 343,092ZM 80,000 40,000 57,708 177,708Thus, the overhead allocated to each product is different depending on the method used. In the first method, the cost drivers were used to allocate overhead, while in the second method, direct labor was used.