First of all, get your hands on Serial commands. User serial monitor and test sending & receiving data. After that simply connect pins of HC-05 with both arduino.
Btw use Software Serial, you will get uploading issues, if you connected HC-05 with hardware serial of Arduino.