Here is our solution. Your solution does not have to look like ours. If it works and is concise, then you’ve done it right!
var initial_position = 0 var initial_speed = 20 var acceleration = 2 var time = 5 var current_positon = (initial_position) + (initial_speed*time) + ((acceleration*time*time)/2) print("The car is currently \(current_positon) meters away from the traffic lights!")
Feel free to contact us if you have any questions.