It sounds like you need to drop the blue yarn, knit across with the green and then use a new end of yarn (from a new ball or the other end of a skein) for the last 5 sts. When you switch yarn colors, you need to carry one strand over the other so that the yarns are twisted and you don't leave a hole. See the video on intarsia knitting
here for help if you need to.