Section 87. The department may transfer, for care and control, including police protection, any lands or rights or easements or interest in land held by it under sections thirty-three and thirty-five to any city, town, county, or local board of a city or town within the urban parks district, with the consent of such city, town, county or board, and upon such terms and for such period as may mutually be agreed upon, and enter into an agreement with any such city, town, county or board for the joint care and control or police protection of such lands or rights therein, and also for laying out, constructing and maintaining ways into or across any such lands; and any city, town, or county, or any local board within the urban parks district, may transfer, for care and control, including police protection, any land, rights, easements or interest in land in its control, although the same be already a part of a public way owned or controlled by it, to the department for such period and upon such terms as may mutually be agreed upon, and may enter into an agreement with the department for the joint care and control, including police protection, of such land or public way. All the provisions of section thirty-six shall apply in the case of any public way within the limits of such land as may be transferred, for care and control under this section, to the department, to the same extent as though such way were a boulevard maintained by the division under section thirty-five.