A sum of money is to be divided among Paul, John And Mary in the ratio 2:3:7 respectively. If Mary received $350 more than John. Determine to the nearest whole number, the total sum of money that was shared.