There are: 14 carbs in an extra small size green apple (2½" diameter) 21 carbs in a small size apple (2¾" diameter ) 25 carbs in a medium size green apple (3" diameter) 31 carbs in a large size...
That depends on the size or weight of the apple and the banana. For the carbohydrate content of both, by size and weight, see the page links, further down this page, listed under Related Questions.