A block of mass M slides along a horizontal table with speed v0. At x=0 it hit's a spring with spring constant k and begins to experience a friction force. The coefficient of friction is variable and is given by μ=bx where b is a positive constant. Find the loss in mechanical energy when the block has first come momentarily to rest.