Calculate your speed per kilometer, by dividing the known time by the distance already ran:
12 minutes / 2 kilometers = 6 minutes per kilometer.
Now multiply the time for 1 by the total distance:
6 minutes per kilometer x 5 kilometers = 30 minutes total.