Richard P. answered 08/12/14
PhD in Physics with 10+ years tutoring experience in STEM subjects
The key equation is the lens equation:
1/p + 1/q = 1/f where p is the object distance, q is the image distance and f is focal length.
Since the image distance is equal to the object distance we can write
2/p = 1/f
so f = p/2