Allie has a birthday present for her brother. The length of the box that the present comes in is two times longer than the width of the box. The height of the box is 5 inches and its volume is 160 cubic inches. What is the length and width of the box?

Let the width of the box be x inches.

The length of the box is 2*x inches.
The volume of the box is length * width * height = 2*x * x * 5 = 160 cubic inches.
10*x^2 = 160.
x^2 = 160/10 = 16.
x = √16 = 4 inches.
The width of the box is 4 inches.
The length of the box is 2*x = 2*4 = 8 inches. Answer: \boxed{8}.