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
[tex]t_R=\frac{540}{x}[/tex]
we can find time taken by Andy
time = distance / speed
so, we get
[tex]t_A=\frac{135}{x-15}[/tex]
Randy drove 540 miles in three times the time it took Andy to travel 135 miles
so,
[tex]t_R=3t_A[/tex]
we can plug it
[tex]\frac{540}{x}=3*\frac{135}{x-15}[/tex]
now, we can solve for x
[tex]540\left(x-15\right)=405x[/tex]
[tex]135x=8100[/tex]
[tex]x=60[/tex]
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
[tex]t_R=\frac{540}{x}[/tex]
[tex]t_R=\frac{540}{60}[/tex]
[tex]t_R=9 hours[/tex]
Andy's time is
[tex]t_A=\frac{135}{x-15}[/tex]
[tex]t_A=\frac{135}{60-15}[/tex]
[tex]t_A=3 hours [/tex]