Answer
Glass B has the longer focal length.
Work Step by Step
The angular magnification (M) is the ratio of the size of the image to the size of the object. A larger angular magnification corresponds to a smaller size of the object, therefore a larger focal length is required to achieve that.