In one day, Annie traveled 5 times the sum of the number of hours Brian traveled and 3. Together they traveled 30 hours. Find the number of hours each person traveled.