For the distant vision:
The power of the lens, given
Hence the focal length will be:
Therefore, the focal length of the lens required for correcting distant vision will be: (Here, the negative sign of focal length tells us that it is a concave lens).
For near vision:
The power of the lens, given
Hence the focal length will be:
Therefore, the focal length of the lens required for correcting near vision will be: (Here, the positive sign of focal length tells us that it is a convex lens).