Rewrite the formula for speed to solve for distance, d.