a) Okay. $f_X(39)$ is the probability that the first defective circuit is the fortieth circuit.
b) Rethink this one. $f_X(12)$ is the probability that the first defective circuit is exactly the thirteenth circuit. You want $1-F_X(12)$ the probability that the first defective circuit made is _at least_ the thirteenth. Where $F_X(x)$ is the Cumulative Distribution Function (CDF).