If 5 are green, then the red apples will be 14-5 which is 9
Let R represent red and G represent green
A.) ratio of red to all apples=R/all apples
That will be 9/14. Which is 9:14
B.) ratio of red apples to green apples=R/G
That will be 9/5 which is 9:5
Hope that helped. Have a nice day