Given float arrays A and B, compute and return ((A + B) * (-A / 2)).
A
B
((A + B) * (-A / 2))
solve(...)