The two Gemaras are Rabbinical commentaries on the Mishnah, which together with the Mishnah make up the two Talmuds. Each Talmud contains a different Gemara, although both share the same Mishnah. See Talmud for more detailed discussion.