Duality and finite elements