type in one place, but it comes up in another

I had posted this question and somehow lost my thread. So, I a going to post again, with a picture.

On line 15, the cursor is far to the right. when I type 2X's they come in about 8 characters in front of where the Cursor is in the IDE.