Step 1: Name the events.
Let $C$ be a correct setup and $I$ an incorrect setup, with $P(C)=0.8$ and $P(I)=0.2$. Let $A$ be the event that two items in a row are acceptable.
Step 2: Acceptance chance for each setup.
A correct machine gives an acceptable item with probability $0.9$, so two in a row is $0.9\times0.9=0.81$. An incorrect machine gives $0.4$, so two in a row is $0.4\times0.4=0.16$.
Step 3: Weight each by its setup chance.
Correct branch: $P(C)\,P(A\mid C)=0.8\times0.81=0.648$. Incorrect branch: $P(I)\,P(A\mid I)=0.2\times0.16=0.032$.
Step 4: Total chance of two acceptable items.
$P(A)=0.648+0.032=0.680$.
Step 5: Apply the reverse-probability idea.
We want the chance the setup was correct given the good output, which is the correct branch divided by the total: $P(C\mid A)=\dfrac{0.648}{0.680}$.
Step 6: Simplify.
$\dfrac{0.648}{0.680}=0.9529\ldots\approx 0.95$. \[ \boxed{0.95} \]