the original ten commandments were written on a tablet by God and handed to Moses on a stone tablet. So when the bible was written new and old testament, the ten commandments were also written out in the bible in the old testament.
So both of these ten commandments I believe are ok. Its not about the layout, the numbering style , the font or any other thing but i believe the attached both have the writings of the ten commandments that were given to Moses at Mt Sinai by God.So both are ok. I believe.