Nonsteroidal anti-inflammatory drug (NSAID) / histamine-2 antagonist combinations are used to treat conditions like osteoarthritis or rheumatoid arthritis, while lowering the risk of stomach ulcers. These medications work by combining an NSAID to reduce pain and inflammation with a histamine-2 antagonist to protect your stomach lining from irritation and ulcers. They are available as oral tablets. An example of this combination is ibuprofen / famotidine (Duexis).