The device X is a concave mirror of radius of curvature 40 cm.
The device X is a convex lens of focal length 40 cm.
The device X is a convex lens of focal length 20 cm.
The device X is a concave mirror of focal length 40 cm.
As the image is focused on the screen placed behind the device X, thus device X is a lens but cannot be a mirror. Also, a convex lens always forms the image of a distant object at its focus. Thus device X must be a convex lens of focal length 40 cm.