Sorry but can you explain what you just did? And what is I.I.d?
It means independent and identically distributed. From which it follows that E(X1) = E(X2). From which matheagle's equation follows. And you should know how to calculate an expected value when you have the pdf.