Sentences are grammatically correct and make sense.
In the first one means:
We have as much pens as they do.
Second means:
They are as tall as us.
"tan" is the equivalent in English for "as much". The concordance is well done in both cases.
Entonces, ayer fue 26 de junio. Then, yesterday was the 26th of June.