Answer: 5 million shares
Explanation:
In order to avoid losses, they can only buy the same amount of shares that they can receive in the options agreement with Lyft.
If they were to buy more than 5 million shares from the open market, they would incur losses because they would not be able to replace these shares with the ones that they can buy from Lyft as a result of their options aggrement.