Medium rings will work with a 40mm front objective. With many rifle/scope combinations you can use low rings, but it just depends on the individual rifle and scope. If lows will fit, I always use the lowest that will fit on the gun.
But you must first detrermine if the scope has a 30mm tube or a 1" tube. Then buy either a 30mm or 1" rings.