IAS 17 applies in such situation:
The 1st contract is between the Bank (lessor) and the Transportation Company (Lessee)
the lessee buys an asset from the lessor and recognizes a loan (finance lease) and capitalize an asset. because it is a finance lease ownership will only transfer to the Transportation company once the last instalment is paid.
The 2nd contract is between the Transportation Company (Lessor) and the Taxi Drivers (Lessee) this contract would be regarded also as a finance lease since the terms states that ownership to be transferred to drivers at the lapse of a certain period. this will only happen if the first contract's terms are satisfied.
Remember that when recognizing a finance lease transaction you use substance over form instead of legal purchase.