Just find the density of every metal and select the one with a density of 2.71 g/cm³ . This is:
Metal 1
ρ = m/V
ρ = 22.1 g / 3 cm³
ρ = 7.367 g / cm³
Metal 2
ρ = m/V
ρ = 42 g / 4 cm³
ρ = 10.5 g / cm³
Metal 3
ρ = m/V
ρ = 9.32 g / 5 cm³
ρ = 1.864 g / cm³
Metal 4
ρ = m/V
ρ = 8.13 g / 3 cm³
ρ = 2.71 g / cm³