Myopia: If the eye has myopia, the eye is too long, and the image falls short of the retina when the target object is far away.
Hypermetropia: The eye is shorter than normal in the case of hypermetropia and the image focuses behind the retina if the target object is near. This means it doesn’t focus even when it reaches the retina.
Hence, concave lens for myopia and convex lens for hypermetropia