Hint 1
You might think that since there are 36 black balls around the outside edge that each side of the square is made up of 9 black balls. However, this isn't true.
The corner balls are each shared by two sides, which means that each side is actually made up of 10 black balls.
Apply this information to the diagram, and you'll have the answer in no time.

