A rug is a textile floor covering, generally consisting of an upper layer of pile attached to a backing. The…