If a boat traveled 6n^2 + 4n miles at an average speed of 2n miles per hour, how long did it take the boat to travel the given distance?