Francis donated 1/10 of his money
He will left 9/10 of his money as a remained
1/3 of remaining = 1/3 * 9/10 = 3/10 of his total money
after shopping, he would left 1 - 3/10 - 1/0 = 6/10 of his total money
6/10x = $564
= $940
940 * 3/10 = $282
$282 + 40 = $322
322 / 7 = $46
46 * 3 = $138
$138 - $40 = $98