The expected value is calculated by:

x represents the value and p the probability.
For this problem we need to know how many possibilities for you to roll 2 odd numbers, 2 even numbers and to get nothing.
As can be seen in the diagram above, the probability of obtaining two even numbers is:

And for two odd numbers:

And to get nothing:

Then the expected value must be:


At this booth the school makes money because the expected value for the player is less than what is worth to play.