Melissa, Charlie, and Josh have a total of $90 in their wallets. Josh has 3 times what Charlie has. Melissa has $10 less than Charlie. How much does each have?