Limit extremal problems