Let $S$ and $T$ be the events "seatbelt fasten" and "receive ticket" respectively.
* $P(S) = 0.79$
* $P(T \mid S) = 0.07$
* $P(T \mid S^C) = 0.22$
Use Bayes' formula to find $P(S \mid T)$.
\begin{align} P(S \mid T) &= \frac{P(S \cap T)}{P(T)} \\\ &= \frac{P(T \mid S) P(S)}{P(T \mid S) P(S)+P(T \mid S^C) P(S^C)} \\\ &= \frac{0.07 \cdot 0.79}{0.07 \cdot 0.79 + 0.22 \cdot (1 - 0.79)} \\\ &= \frac{79}{145} \end{align}
If a driver receives a ticket what is the probability that he had fastened his seatbelt is $79/145$.