Tom K. answered 03/01/22
Knowledgeable and Friendly Math and Statistics Tutor
You can solve this algebraically:
if the pen costs p, Jim has p - 24 and Barbara has p - 4.
If together they have less than p,
p - 24 + p - 4 < p
2p - 28 < p
p < 28
The most the pen can cost is 27 cents.
Alternatively, Barbara needs 4 more cents, so if getting Jim's money is not enough, p- 24 < 4; p < 28