code for two motors

Ah yes. I actually meant for both to run for 10 seconds, motor 1 continues for 2 and motor 2 stops. My bad, i should i have clearly wrote it.

Anyway, Thankyou