This thread is full of good resources:
Basically you’re using the Factor from the 1st curve to control the scale of instances:
Good luck.