Both directions?
(Disclaimer: I'm an engineer trying to go sailor)Scenario 1: The goal is to make the most torque around the gooseneck. X = distance on boomY = distance on mastF = force by vanginverse tan $ = y/xtorque = F (x sin $)with a constanf F, lets say 100 lb. And we'll position the attachment on the mast 30 inches below the gooseneck. On the boom, our limit will be 12" to 40"Result: 1100 in-lb of torque at 12", increasing to 1900 at 24", 2300 at 36", 2400 at 40", and (just for kicks) 2500 at 48". So obviously theres a point where the returns are diminishing, plus we're sideloading our mast section unnecesarily. Each foot beyond the first is half as effective as the last. This assumes the boom is rigid, and a very generic sail. There's more math you could do for a loose-footed or bolt rope sail, etc etc. But heres the general situation.Take it as you wish