Draw the horizontal cursor. Add the x,y coordinates of the top left hand corner of the cursor. Add the width and height of the horizontal cursor rectangle.
Now draw the vertical cursor. Add the x, y, w, h values for the BLUE and the x, y, w, h values for WHITE.
Seriously. Pencil, paper and a cup of tea is how you solve these problems.
If you try to do everything "in your head" you will just find that your head hurts.
With pencil and paper everything becomes clear