Let's assume
Randy's speed =x mph
we have
Andy’s speed was slower than Randy’s by 15 miles per hour
so,
Andy's speed =x-15
Randy drove 540 miles
so, we can find time taken by Randy
time = distance / speed
so, we get

we can find time taken by Andy
time = distance / speed
so, we get

Randy drove 540 miles in three times the time it took Andy to travel 135 miles
so,

we can plug it

now, we can solve for x



so,
Calculation of rate:
Randy's speed is 60 mph
Andy's speed =x-15
Andy's speed =60-15=45mph
Calculation of time:
Randy's time is



Andy's time is


