Dual analysis of frictionless problems by displacement and equilibrium finite elements