3M Company , formerly known as the Minnesota Mining and Manufacturing Company , is a U.S.-based multinational company that produces some 55 thousand products , ranging from adhesives to electronic materials .