Hey, I'm having trouble understanding the process to find the expectation of pmf's that I have to find.

I know the formula for it but still cannot understand it.

With The first link, I can get all the way to question (c)

I get the pmf,

But can't get the expectation, and for the second link i'm completely clueless