The following are the answers to the question presented:
vi = (d - 1/2at²)/t
a = 2*(d - vit)/t²
I am hoping that these answers have satisfied your queries and it will be able to help you in your endeavors, and if you would like, feel free to ask another question.