On the Interdependence of Illegal and Legal Immigration