A bakery collected $1848 from selling some pies and cakes. The ratio of money collected from selling the pies to cakes was 15:7. The ratio of the number of pies to cakes sold was 4:1. A cake cost $13 more than a pie. How many

cakes were sold?

Let the common ratio be x.

Then, the total number of pies sold = 4x, and the total number of cakes sold = x.
The total amount collected from selling pies = 15 * $x = $15x.
The total amount collected from selling cakes = 7 * $x = $7x.
The total amount collected from selling pies and cakes = $15x + $7x = $22x.
According to the problem, this total amount collected = $1848.
Therefore, $22x = $1848.
So, x = $1848 / $22 = 84.
The total number of cakes sold = x = 84.
Hence, 84 cakes were sold. Answer: \boxed{84}.