2007 MacBook has dead optical drive and can't reload OS
I admit that I've done a foolish thing. I have a 2007 MacBook that was running on OS 10.5.8 and the optical drive no longer works. I wanted to wipe the drive completely clean and went where I didn't belong. I connected it to my iMac running OS 10.7.5 via Firewire and went into Disk Utility. I erased everything on the MacBook and tried to reload Leopard through an external hard drive that was connected to the iMac. That didn't work so I made a 2-DVD copy of the software and inserted the first one into the iMac and put it in Terminal mode. I'm trying to force the MacBook to boot from the optical drive on my iMac. I've used the Option key to show me the different opportunities for booting, but when I click on the iMac I get a restricted circle. My handy work has left me with a great MacBook that only shows either a flashing folder with a question mark or a restricted circle when I try to ask it to open from another source. Can you please give me some advise (besides don't mess around in places you know nothing about) on how to get my MacBook running again?
MacBook, Mac OS X (10.5.8)