Let [tex]W[/tex] be the random variable representing the winnings you get for playing the game. Then
[tex]W=\begin{cases}10-1=9&\text{if the dice sum is odd}\\5-1=4&\text{if the dice sum is 4 or 8}\\50-1=49&\text{if the dice 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)=\frac92+\frac89-\frac29+\frac{49}{18}=\frac{71}9[/tex]
or about $7.89.