Jenny is buying her mom a Mother's Day present at Jazzy Jewelry, which sells gold jewelry by weight. First, she finds a pair of gold earrings. Each earring weighs 950 milligrams. Then, she looks for a matching necklace. If Jenny can afford 5 grams of gold jewelry, how many grams can the necklace weigh?