Thomas and Grace earned a total of $48 shoveling snow. If Thomas earned three times as much as Grace, how much did Thomas earn?​ Write an equation and solve