The Gemara (Yevamos 108b) says:
אמר רב יהודה אמר רב מאי דכתיב מימינו בכסף שתינו עצינו במחיר יבאו בשעת הסכנה נתבקשה הלכה זו הרי שיצאה מראשון בגט ומשני במיאון מהו שתחזור לראשון שכרו אדם אחד בארבע מאות זוז ושאלו את ר' עקיבא בבית האסורין ואסר את רבי יהודה בן בתירה בנציבין ואסר
Who taught [the two respective statements of our Mishnah]?27 Rab Judah replied in the name of Rab: To this may be applied the Scriptural text,28 We have drunk our water for money; our wood cometh to us for price.29 In the time of proscription30 the following halachah was inquired for: If a minor left her first husband with a letter of divorce and her second husband through mi'un, may she return to her first husband? They hired a man for four hundred zuz,31 and [through him] they addressed the enquiry to R. Akiba in prison,32 and he stated that she was forbidden.33 R. Judah b. Bathyra [also was asked] at Nesibis and he too forbade her
Rabbi Yehuda Ben Beseira was active before the Beis Hamikdash was destroyed (As in Pesachim 3b of the story of how the Aramean brought the Pesach Sacrifice). Rabbi Akiva was arrested after the Bar Kochva revolt.
How could they be asked the same question at the same time?