Start by putting the red lead onto the good car's positive terminal, then the other end onto the dead car's positive terminal.
Next, the black lead onto the good car's negative terminal, but the other end onto the dead car's engine or gearbox, or onto its earth cable nearer to the gearbox than the battery. This ensures that any spark is not near the battery, so will not cause the battery to explode. (Hydrogen gas!)
Do not start the good car.
Start the dead car.
Once running, remove the black lead from the dead car first, then from the good car. Then remove the red lead from the dead car, then from the good car.