An image in a convex lens is upright and magnified 3 times. If the focal…