First off, disclaimer, this was a homework question, albeit one that I've already turned in.
I was given the problem
There is a bag containing forty coins: 5 nickels, 10 dimes, and
25 quarters. Let X be the value of drawing twenty coins out of
this bag at random without replacement. Calculate the expected
value and the variance of X
I calculated $\mathbb{E}[X]$ by noting that we would expect to grab half of each type of coin, thus $\mathbb{E}[X]=2.5(.05)+5(.10)+12.5(.25)=3.75$. Where I got stuck was calculating the variance. I'm aware of the formula $Var[X]=\mathbb{E}[(X-\mathbb{E}[X])^2]$, which seems relevant, but I'm not sure how to apply it. Any hints/help would be appreciated!