A college student needs 11 classes that are worth a total of 40 credits in order to complete her degree. The college offers both 4-credit classes and 3-credit classes. How many 4-credit classes does this college student need to complete her degree?