I have done problems similar to this one with 4 components but im getting stumped with the 5th one in the middle. I thought it would be a good idea to make each side B1 and B2 to simplify the system or something like that...

The probability of failure for each components is next to the number

i basically need to find the probability that the system works..but the 5th component is confusing me

so far I have system works= (A1UA4)UA2U(A3UA5), but this is after to subtract 1 from each prob. of failure to get success.

help would be appreciated