Let [tex]W[/tex] be the random variable representing the winnings you get for playing the game. Then
[tex]W=\begin{cases}9&\text{if the sum is odd}\\4&\text{if the sum is 4 or 8}\\49&\text{if the sum is 2 or 12}\\-1&\text{otherwise}\end{cases}[/tex]
First thing to do is determine the probability of each of the above events. You roll two dice, which offers 6 * 6 = 36 possible outcomes. You find the probability of the above events by dividing the number of ways those events can occur by 36.
So the probability mass function for this game is
[tex]P(W=w)=\begin{cases}\frac12&\text{for }w=9\\\frac29&\text{for }w=4\text{ or }w=-1\\\frac1{18}&\text{for }w=49\\0&\text{otherwise}\end{cases}[/tex]
The expected value of playing the game is then
[tex]E[W]=\displaystyle\sum_ww\,P(W=w)=\frac{71}9[/tex]
or about $7.89.
The expected value is positive, so a player can expect to earn money in the long run, and so should play the game.