H1.G and H1.H solution

H1.G

H1.H