It would not be Riba, but such a transaction (i.e. 2 in 1 transaction) is invalid and would not be allowed in a Muslim market.