Phil has three times as many DVDS as sam has. Even after Phil gives Sam 6 DVDs, he still has 16 more DVDs than Sam has. What was the original number of DVDs that Phil had?

I set this up like so,

P=3*S

P-6=16+S+6

(S=Sam)

How do I solve this? Any answers appreciated!