Density of nuclear matter is independent of mass number, so the required ratio is 1: 1. Alternative A1:A2=1:3
Their radii will be in the ratio R0A11/3:R0A21/3 =1:31/3
Density =34πR3A ∴ρA1:ρA2=34πR03⋅131 =34πR03(31/3)3
Their nuclear densities will be the same.