Can someone please explain how you work this sum out, preferrably step by step?

A shopkeeper buys a crate of eggs at $1.50 per dozen. He buys another crate, containing 3 dozen more than the first crate, at $2.00 per dozen. He sells all for $2.50 a dozen and makes $15 profit. How many dozens were there in each of the crates?