The correct option is B x√km
Initial total energy of the system = KE +PE
initially KE is zero and PE is (k∗x2)/2
as we know, maximum velocity will be attained when the block is at the equilibrium position because at equilibrium net force on the block will be zero.
now, when the block passes through the equilibrium position
we have,
PE is zero as there is neither expansion nor contraction in the spring
KE=(m∗v2)/2
applying conservation of energy gives us
(m∗v2)/2=(k∗x2)/2
v=(√(k/m))∗x