Duality Problems with Second-Order Polyhedral Discrete and Differential Inclusions