I'm writing a code to analyze an illustrator file. It will analyze the black space, and white space. It will then tell whether or not the black space is equal to the white space. I have a vague idea of the algorithm, but I'm going to need some help. How should I write this?