Some relations between duality theory for extremum problems and variational inequalities