Frank has $20 less than Tracy. John has twice as much as Frank. Patty has three times as much as John. Together they have $340. How much does each person have?

f = t - 20

j = 2f = 2t - 40

p = 3j = 6t - 120

9t - 180 = 340

solve for t, then substitute back