I'm trying to implement a precise predictive aiming method into an AI that I'm making at school and I need the following translated into a usable code.. I'm stumped.. This is going to require someone extremely familiar with quadratic formula solving methods..

Small legend..


Formula...



Thanks a tonne