In a Binomial distribution with n=5 trials, let the probability of success be p and failure be q=1−p. We are given P(X=1)=(15)pq4=5pq4=0.4096 and P(X=2)=(25)p2q3=10p2q3=0.2048.
Dividing the second equation by the first: 5pq410p2q3=q2p=0.40960.2048=21. This gives q=4p. Substituting into p+q=1 yields 5p=1, so p=51 and q=54.
We can verify: 5⋅51⋅(54)4=625256=0.4096 and 10⋅251⋅12564=3125640=0.2048, both correct.
The probability of exactly 3 successes is P(X=3)=(35)p3q2=10⋅1251⋅2516=3125160=62532.