The ratio of the money which three persons, Taro, Jiro, and Hanako, have was 5 : 3 : 1.
Since Taro passed 800 yen to Hanako and Jiro also passed some amount of money to Hanako, the ratio of three persons' money was 7 : 4 : 4.
Since three persons donated the same amount of money after that, the ratio of the money they have turned to 5 : 2 : 2.
Find the total amount of money three persons donated.