Not sure why, but I wasn't able to post my solution as text, so I've written it elsewhere and am posting screenshots of it here.
In the fifth attachment, the first solution is shown above the second one.
9.5m questions
12.2m answers