How to Choose a Lens! Basically you need to know the size of the sensor, the size of the object, and the distance between camera & object. Plug these numbers in the equation, you will get the focal length you need.
It is easy to figure out what you need in regard to the focal length required.
Here is the equation: