Here is the definition of the entropy
$$H(S)=-\sum_{x \in X} p(x) \log _{2} p(x)$$
Wikipedia's description of entropy breaks down the formula, but I still don't know how to determine the values of $X$, defined as
The set of classes in $S$
and $p(x)$, defined as
The proportion of the number of elements in class $x$ to the number of elements in set $S$.
Can anyone break this down further to explain how to find $p(x)$?