A rectangle has an area 40 square units. The length is 6 units greater than the width.What are the dimensions?