write some simultaneous equations containing the information in the question:Hi everyone. I am incredibly lost on this problem and I have no idea how to do it. It seems like it's easy, but I'm just not getting it. Any hints would be extremely helpful. Thanks!

Let X be a random variable taking values 0, 1 or 2. Suppose E[X] = m_1

and E[X^2] = m_2. Compute P [X = i] for i = 0; 1; 2.

(E is expected value; P is the probability function.)

ie,

Solve simultaneously to get P(X=1) and P(X=2). Finally, note that P(X=0) + P(X=1) + P(X=2) =1