Question 74479
This is identical to problem 74452, which I have solved.

Check that problem number for solution.