Friend help

How many red packages can I open?

I don't understand the principle, can you please help? Thank you