Hint 1
You might have come to the conclusion that, since there are 36 black balls around the edge, each side of the square has nine black balls. However, this is not the case.
The corner balls are each shared by two sides, meaning that each side is in fact made up of 10 black balls.
Try drawing your own diagram and you'll have the answer in no time.

