Sophie has some books. Tom has three times as many books as Sophie. Leo has 8 fewer books than Tom. Together they have 48 books.
How many books does Leo have?