The are multiple cause of neck and rib pain and based on your statement we cannot come to a perfect conclusion. Nevertheless she might be having acidity or ulcer which rarely have radiating pain in the chest and arms. Which part of the ribs is paining? And if she is elderly consider taking an ecg in nearby clinic for safety sake cause there is a possibility of angina. Her sitting position or sleeping position may also be a cause.