In exams, $80\%$ of the students go prepared and $20\%$ go unprepared.
From the prepared ones, $90\%$ passes the exams.
From the unprepared one, only $10\%$ passes the exams.
First question: If a student passes the exams, what is the probability for him to be prepared?
Second question: From $4$ randomly chosen students, what's the probability that at least 3 passed the exams?
Let's write it in Terms: $$A:=\text{Student is prepared.}$$ $$B:=\text{Student passes the exam.}$$ We are given $$\begin{align*} P(A) & = 0.8 \\ P(\bar{A}) & = 0.2 \\ P(B|A) & = 0.9 \\ P(B|\bar{A}) & = 0.1 \end{align*}$$ The question asks for
1. $P(A|B)$ and
2. $P(B)$ combined to a Bernoulli experiment.
1. $P(A|B)%$
By Bayes' theorem we have $$P(A|B) = \frac{P(B|A) P(A)}{P(B)}$$ And by total probability we have $$P(B) = P(B|A) P(A) + P(B|\bar{A}) P(\bar{A}) = 0.9 \cdot 0.8 + 0.1 \cdot 0.2 = 0.74$$ So $$P(A|B) = \frac{0.9 \cdot 0.8}{0.74} \approx 0.97 $$
2. Bernoulli
The Question is for $$X := \sum_{i=1}^4 X_i$$ With $P(X_i = 1) = P(B), X_i \in \{0,1\}$ find $$P(X \geq 3) = P(X=3) + P(X=4)$$ For $P(X=4)$ we only have $(B,B,B,B)$, so $$P(X=4) = P(B)\cdot P(B) \cdot P(B) \cdot P(B) = P(B)^4 \approx 0.30$$ For $P(X=3)$ we have $(B,B,B,\bar{B}), (B,B,\bar{B},B), (B,\bar{B},B,B), (\bar{B},B,B,B)$, so $$P(X=3) = 4\cdot P(B)^3 \cdot P(\bar{B}) = 4\cdot 0.74^3 \cdot 0.26 \approx 0.42$$ And thus $$P(X\geq 3) \approx 0.72$$
In fact, the general formula given $P(X_i) = p$ is $$P(X=k) = \binom{n}{k} p^k (1-p)^{n-k}$$ Where $n$ is the sample size (here $n=4$).