question: If one lock is gold and squarish, and the other lock is round with a black face.
#1 return locks 
#2 return #1 that are  gold 
#3 return #2 that are  squarish 
#4 return number of #3 
#5 return if  #4 is  equal to one 
#6 return #1 that are  round 
#7 return faces of  #6 
#8 return #6 where #7 are  black 
#9 return number of #8 
#10 return if  #9 is  equal to one 
#11 return if  both  #5 and #10 are  true