The 2 heated brass balls have the same diameter.
Work Step by Step
When the balls are heated, the material expands uniformly, as though a 3D picture of them were enlarged on a magical photocopier. Their outer circumferences both expand by the same factor. Another way to think about this is that the size of the hole in the hollow brass ball will expand precisely as much as a brass sphere that fills the hole.