Jill pedaled her bicycle at (3x+6) mph for (x-1) hours.

If Jill rode 30 miles, what was her average speed?
How many hours did it take for Jill to ride those 30 miles?