MATLAB:Reducing Transfer Functions using: Append&Connect technique VS Feedback,cloop,series&parallel command technique
Assuming the two outputs from G4 are the same (= Y), add a block, \$\frac{1}{G4}\$, in series with H2 and move the input to this path to Y. Now the task is much easier; just work outwards from the innermost loop.