Describe when the work done by spring force will be positive and when it will be negative in a horizontal spring mass system
when you stretch/compress a spring the work done by spring force is negetive but
when you release the stretched/compressed spring work done by spring force is positive.
All you have to do is to identify direction of force acting and the direction in which body is displaced.