Any expenditure which apart from this section would fall to be borne by a local authority—
shall be recoverable from the said other local authority, and in this subsection any reference to another local authority includes a reference to a local authority in England or Scotland.
For the purposes of paragraph (a) of the last foregoing subsection it shall be assumed that the expenditure incurred by a local authority in providing accommodation for any person is, as respects accommodation provided in premises managed by a local authority, at the rate for the time being fixed for that accommodation under subsection (2) of section twenty-two of this Act, and, as respects accommodation provided pursuant to an arrangement made under section twenty-six of this Act, at the rate referred to in subsection (2) of that section.
Any question arising under this Part as to a person's ordinary residence shall be determined by the Secretary of State or by the Welsh Ministers.
The Secretary of State and the Welsh Ministers shall make and publish arrangements for determining which cases are to be dealt with by the Secretary of State and which are to be dealt with by the Welsh Ministers.
Those arrangements may include provision for the Secretary of State and the Welsh Ministers to agree, in relation to any question that has arisen, which of them is to deal with the case.
Subsections (3) to (5) do not apply to a question which involves a dispute to which paragraph 5 of Schedule 1 to the Care Act 2014 applies (corresponding provision about cross-border placements).