N.Y. Uniform Commercial Code § 9-336
Section 9--336. Commingled Goods.
(f) Conflicting security interests in product or mass If more than one security interest attaches to the product or mass under subsection (c), the following rules determine priority: