Part A
Use the binomial probability distribution formula.
p = 0.54 = probability of getting a purple marble
n = 5 = sample size
x = 2 = number of purple we want to get
[tex]P(x) = \frac{n!}{x!(n-x)!}*p^x*(1-p)^{n-x}\\\\P(2) = \frac{5!}{2!(5-2)!}*0.54^2*(1-0.54)^{5-2}\\\\P(2) = 10*0.54^2*0.46^3\\\\P(2) = 0.283831776\\\\[/tex]
The [tex]\frac{n!}{x!(n-x)!}[/tex] portion is from the nCr combination formula. The exclamation marks indicate a factorial.
Alternatively, you could use Pascal's Triangle for that portion.
This decimal value is exact. Round it however you need to.
============================================================
Part B
To find the expected value, aka the mean, we multiply the sample size and probability of getting a purple marble on any single selection.
n*p = 5*0.54 = 2.7