I finally worked out the answer.