The bag contains:
2 gold marbles
8 silver marbles
29 black marbles
Prizes:
$4 if it's gold
$2 if it's silver
$1 if it's black
We can calculate the expected value using the following formula:

Where xi is the money you can get for each marble and P is its probability
Gold marble:
x = $4
P(x) =

then, x*p(x) is

Silver marble:
x = $2
P(x) =

then, x*p(x) is

Black marble:
x = $-1
P(x) =

then x*p(x) is

Finally, we need to add all those x*p(x) values we got before to find the expected value, this is:

Answer: your expected value if you play this game is -0.1282