Section 27. If there are several parties, who have several estates in the same property at the same time, other than the estates and interests for which provision is made in section twenty-four, and the property is taken in whole or in part or receives injury for which damages are recoverable under this chapter, and one of such parties petitions the superior court to ascertain his damages, the other parties may become parties to the proceedings under such petition, and the damages of all of them may be determined together, in the manner provided in the three following sections.