Check the calculation of the Gini coefficient in the relevant wikipedia page. You will obtain your answer from there, as there is a closed form solution for your question.