BELLMAN FUNCTIONS AND TWO WEIGHT INEQUALITIESFOR