How do you have vex cortex work with arudino?

In general, Cortex supports many analog and digital sensors that work with Arduino, like the ultrasonic sensor, so you could simply connect them directly to the Cortex without a need for Arduino.

However, if you must have Arduino for some reason, then you could use Cortex UART serial port for communication.

These two threads have relevant discussion, pinouts, and code examples: