A shark swims at a speed of 25 miles per hour. The shark rests after 40 miles. How long, in minutes, does the shark swim before resting?