The Greeks didn't pronounce the x in Aias (they're closest equivalent is a chi), because their version of the word didn't contain the x; the Romans transliterated the Greek and came up with Ajax by adding the x at the end.