This is the famous hat check problem. Let's say there are 4 people and 4 hats. They are randomly given back to their owners as they walk out the door.
I'm looking to find the expected value of the number of people who get their hats back.
So since expectation requires the summation of xP(x),
I'm assuming the first step is to find the probability that exactly x people get their hat back for cases 0 through 4.
Is that correct?
If so, how do I find the probability of that exactly 0 people get their hat back, as well as 1 person, then 2 people etc...
You don't need to work out the individual probabilities. You can use linearity of expectation. Let's do the $n$ people and $n$ hats case. The number of people who get back their own hats is $Y=X_1+X_2+\cdots+X_n$ where $X_j$ is the indicator function of the event that person $j$ regains her/his hat. So $E(Y)=E(X_1)+\cdots+E(X_n)$. But $E(X_j)$ is the probability that person $j$ regains his/her hat. What is that?
As a follow-up, you could use a similar method to work out the variance of $Y$.