For the power cable, wedge a flat-blade screw driver in between one of the sides of the power cable and the socket it plugs into, and use it as leverage to pry it out at an angle - they're sometimes in there real good. The data ATA cable will simply come out if tugged at with some force.
MacBook Pro (15-inch, Mid 2012) 2.3 GHz Core i7, 8GB, 256GB M4 SSD
iPhone 6 - 64GB S/G • Sound System Audio Engine A2 • Display UltraSharp U2412M 24"
Custom Built Gaming PC Skylake Edition | 16GB DDR4 | GTX 1070 8G