Well if your just gonna due apple pie, you will use all the apples and have 2 cups of flour left over to get $12.
For apple cobbler you will have 6 cups of apples and no flour left over to get $10.
For both you would have 3 apple pies to get $9 and 2 apple cobblers to get $4 the total would be $13. This would be the greatest amount.