$12 t$
$8 t$
where $t$ is the amount of time ran and each number ($12$ and $8$) is the miles per hour each person ran.