Machine Repair Problem

 In:= Xsm = {{(1 - p)^3, (1 - p)^2*p, (1 - p)^2*p, (1 - p)^2*p, (1 - p)* p^2, (1 - p)*p^2, (1 - p)*p^2, p^3}, {(1 - p)^2, 0, (1 - p)*p, (1 - p)*p, 0, 0, p^2, 0}, {(1 - p)^2, (1 - p)*p, 0, (1 - p)*p, 0, p^2, 0, 0}, {(1 - p)^2, (1 - p)*p, (1 - p)*p, 0, p^2, 0, 0, 0}, {0, 0, 1 - p, 0, 0, 0, p, 0}, {0, 0, 0, 1 - p, 0, 0, p, 0}, {0, 0, 0, 1 - p, 0, p, 0, 0}, {0, 0, 0, 0, 0, 0, 1, 0}} /. p -> 0.1;
 In:= XGraph[Map[ StringTake[StringReplace[ToString[#], Space -> ""], {2, -2}] &, Subsets[{1, 2, 3}]] /. "" -> "None", DiscreteMarkovProcess[1, sm], VertexSize -> {"Scaled", 0.06}, ImageSize -> Medium]

A machine shop has three machines, where on a given day a machine fails with probability . Machine 1 feeds both machines 2 and 3, so if machine 1 fails, there is no production that day. Only one machine can be repaired on the same day so it is available for the following day. If several machines are down, they are repaired in priority order 1, 2, and 3. A machine that has been repaired is assumed to be working the next day. The states enumerate all possible combinations of failed machines, and the process starts with all machines working. Visualize the process, with the vertex labels showing the machines that are down.

 Out= There is production if no machines are down, or only one of machines 2 and 3 is down.

 In:= X\[ScriptCapitalP] = DiscreteMarkovProcess[1, sm];
 In:= XPosition[Subsets[{1, 2, 3}], {} | {2} | {3}]
 Out= In:= XProbability[x == 1 || x == 3 || x == 4, x \[Distributed] StationaryDistribution[\[ScriptCapitalP]]]
 Out= The probability that there is production at full capacity.

 In:= XProbability[x == 1, x \[Distributed] StationaryDistribution[\[ScriptCapitalP]]]
 Out= The average time it takes to get from all machines down to no machines down.

 In:= XMean[FirstPassageTimeDistribution[DiscreteMarkovProcess[8, sm], 1]]
 Out= 