Concept:For a convex lens forming a real image, the lens formula and magnification relate object distance u, image distance v, and focal length f.Explanation:Let the object distance be u and the image distance be v.The distance between object and real image is given as:u+v=40Magnification is 3, so for a real image:uv=3v=3uSubstitute into the distance equation:u+3u=404u=40u=10 cmThen:v=3u=30 cmUsing the lens formula:f1=u1+v1f1=101+301=303+1=304f=430=7.5 cmAnswer:The focal length of the lens is 7.5 cm, so the correct option is B.