Solving a distance, rate, time problem using a system of linear equations