convert letter to x value