two sub problems for scholar example