1 of 2

Julia, 29 bytes

x->y->prod(x)÷cumprod(x)⋅y

Try it online!