Remedies for painful trapped gas?

I recently took some NSAIDS and they reacted badly so I have really painful trapped gas I BBC ant even walk up straight. How do I get rid of this and how long can it possibly last?
Remedies for painful trapped gas?
Post Opinion