If the components are powered from two different AC circuits, then 40 feet is close to the limit for RCA interconnects. If on the same AC power circuit, you can go longer by using a coax with a heavy braided shield.
When going to balanced, it's not just about the cable, it's about the interconnect system.
balanced output stage >> balanced cable>>balanced input stage.