A rectangular yard is 20 yards wide and 40 yards long. It is surrounded by a thick hedge that grows on the border of the property, but completely within the boundaries of the yard. If the hedge covers an area of 171 square yards, what is the width of the hedge?