Using RFID and a SD card

Hey, so I have a Adafruit PN532 shield and a Adafruit SD datalogging shield. I would like to take the values from the PN532 and store them onto the SD card shield. I took the sio14443a example sketch and the datalogging example sketch and just combined the two while fixing a few problems while compiling. I can get the two working just not with each other (It says it can't find the pn532 chip). If I have both of them on and put on the iso sketch on I can read the RFID cards and if I load the CardInfo sketch I can read the SD card and I can write to it. The RFID shield using I2C and the SD card shield uses SPI. I don't even know where to start to try to get the two working together and any help is as good as any.