H5.A and H5.B solution

A

B