can I use for nikon d3100 18-55 & 55-200 ?
I am not a Nikon user, so I do not know the filter size for both lenses. Technically, if both lenses are 49mm thread size the answer is yes. How well it will work, I do not know.
I am guessing that you would use the 55-200 on the camera and reverse the 18-55 as the magnification is the one lens focal length divided by the focal length of the other. so 55/55=1, 55/18=3, 200/55=3.6, or 200/18=11x magnification on macro.
I was using primes to limit distortion issues as those will be magnified too.