Brocolli, try:
with(twelve, mapply(powertest, fail, samplesize))
But, given you don't really need two variables, but really just the ratio of the two, you could just as easily do:
with(twelve, sapply(fail / samplesize, pwr.t.test, power=.8, sig.level=.05, ...)) # replace ... with actual arguments
I haven't tested this b/c I don't know where the function you're using is coming from, so you may need to tweak a little.