A two-stage variational inequality for medical supply in emergency management