Stuart and Dave each had some money. If Stuart spends 3 times the amount Dave spends each day, Stuart would have left $280 by the time Dave spends all his money. If Stuart spends 1/3 the amount that Dave spends each day, Stuart would have $568 by the time Dave spends all his money. How much does each of them have?