A boat traveled upstream a distance of 90 miles at an average speed of (v - 3) miles per hour and then traveled the same distance downstream at an average speed of (v + 3)miles per hour. If the trip upstream took half an hour longer than the trip downstream, how many hours did it take the boat to travel downstream?