Answer:
Let x be the amount Pam has, then Dan has x - $3.00 and Sam has x + x - $3.00 + $1.00 = 2x + $1.00
The total amount of money they have is x + x - $3.00 + 2x + $1.00 = 31.00
So, 4x + $1.00 = 31.00
Subtracting $1.00 from both sides gives 4x = 30.00
Finally, dividing both sides by 4 gives x = $7.50
So Pam has $7.50, Dan has $7.50 - $3.00 = $4.50, and Sam has $7.50 + $4.50 + $1.00 = $13.00.