18 refers to a chromium content, i.e. 18% chromium. The second number refers to the percentage of nickel.
18% is nickel free, which means it will not retain its luster for many years Chrome gives cutlery the property of not rusting easily.
Nickel gives them shine to silver as well as some resistance to rust.