According to the database the entrance pupil for the 17-40 is located approx 70mm from the lens flange, measure 70mm from the lens flange and mark that on the lens. Place your finger there and look into the front of the lens - it may help to mount the lens and stop down the aperture. That should appear to at the same depth in the lens as the mark, placing your finger on the mark should help visualise that.
Next do the same with the 35mm f1.4 place your finger on the barrel outside at the depth where the aperture iris appears to be, mark it and measure how far up from the lens flange the mark is. From that distance I can estimate approximately what sort of extension you need. _ it's only an approximation mind you but it's better than nothing.
Unfortunately you need the lens in your hand to estimate where the pupil is. If it's the same dimension as the 24mm f1.4 I would guess it would need similar extension or slightly less.
The alternative is to just try the 48456 extension and see how the results look.