The velocity, V of a gas is related to its mass, M by (k =…