Your question is missing, but accordingly to the title this is my
suggestion:
Define a Test Plan property called threads and use its value to distribute
load among Threads Groups
# threads=50
Threads Group 1 (60%) -> __javaScript(Math.ceil(${threads}*0.6))
Threads Group 2 (40%) -> __javaScript(${threads}-Math.ceil(${threads}*0.6))
If you want to vary the load for each Threads Group then use another Test
Plan property to define load percentiles and pass it with -J or -G JMeter
command line parameters
# threads=50 and loadFactor=0.6
Threads Group 1 (60%) -> __javaScript(Math.ceil(${threads}*${loadFactor}))
Threads Group 2 (40%)
-> __javaScript(${threads}-Math.ceil(${threads}*${loadFactor}))
Regards