A magnet attracts a nail with a force that varies inversely with the square of the distance between them. The nail is 12 inches from the magnet. How many inches from the magnet would the nail need to be to have twice as much attractive force on it as it current has?

I can't seem to get 6*sqrt(2) even though I think I'm setting up right. F=k/d^2 right?