question: How many purple cubes and green balls are there?
#1 return cubes 
#2 return #1 that  is  purple 
#3 return balls 
#4 return #3 that  is  green 
#5 return number of  #2 
#6 return number of  #4 
#7 return sum of #5 and #6