Green apples contain a compound called pectin, a fiber source that works as Green apples appear green because of chlorophyll in the peel.
Hope this helps, have a great day!