Duality in linear spaces