The object or image distance is taken as positive
if the length is measured in the direction of the incident ray
The object or image distance is taken as positive if the length is measured in the direction of the incident ray. It is simply taken due to sign convention.
Hence the correct option is (b).