SELECT T1.Album_Name,
Sum(T1.Track_price) AS Total_Money
FROM
(SELECT T.AlbumId,
A.Title AS ALbum_Name,
IL.TrackId,
SUM(IL.UnitPrice * IL.Quantity) AS Track_price
FROM InvoiceLine IL
JOIN Track T ON T.TrackId = IL.TrackId
JOIN Album A ON A.AlbumId = T.AlbumId
GROUP BY 3) T1
GROUP BY 1
ORDER BY 2 DESC
LIMIT 10