To get area you need to multiply the length and width to find the sq miles of the shape. If you know the sq miles and the width you need to divide to find the length. To do this problem you are going to divide the sq miles (27) by the width (9). Then you will get your answer.
How it will look in equation form:
27/9=3
The length is 3 miles.
Hope this helps!