A car is moving at 45mph. Once the care starts to break, its speed(s) is related to the number of seconds(t) it spends breaking according to the formula below.
S = -10t +45

Determine how many second it takes for the car to stop.