how do I set this up and how do I know

Given
Let 't' represents the time
Peg drives 30mph after he has driven 20miles, the total distance travelled here will be
[tex]\begin{gathered} 30\times t+20 \\ =30t+20 \end{gathered}[/tex]Darren drives 45mph, hence the distance travelled will be
[tex]45\times t=45t[/tex]Equate the two and solve for t
[tex]\begin{gathered} 30t+20=45t \\ 20=45t-30t \\ 20=15t \\ \frac{20}{15}=\frac{15t}{15} \\ \frac{4}{3}=t \\ \therefore t=1\frac{1}{3}hr=1hr\text{ 20minutes.} \end{gathered}[/tex]Hence, it will take 1hr 20min.