Feelings report the difference, not the value
When you ask yourself "is this expensive?", what you're measuring is how far this one is from the one you just saw. Call the price of the one in front of you x and the one you just saw a. a is the ruler in your head:
d=x−a
If d is negative, it seems cheap; if positive, it seems expensive. See the 2,980 one first, and d=1280−2980=−1700; see the 480 one first, and d=1280−480=800. x stays at 1,280 the whole time, but switch the ruler, and d flips from negative to positive, and the feeling flips from cheap to expensive.
The further off the foil, the more what it sets off stands out
This ruler doesn't only measure prices. You scored 78 on a test. If the rest of the class scored around 60, you feel you did well; if everyone else scored around 90, you feel you flunked. The score is the same.
When the ruler moves along with things, slow change goes unseen
The ruler is always the most recent thing, so a big jump makes a big difference, and the feeling is magnified. But if change comes a little at a time, the ruler moves to the last step at every step, so each difference is small, and the total change stays hidden. Weekly overtime goes from ten hours to twenty, each week only a little more than the week before, yet the total has doubled. The fix is to switch to a ruler that doesn't move: dig out the numbers from six months ago to compare, and write down in advance how many hours of overtime it takes before you turn work down.
When you're comparing relative standing, the competitors are the right ruler: to pick the fastest runner in a race, you should compare against the others in it. To pick someone who can deliver on schedule, the ruler is what the delivery requires: beating the other candidates is no use; they have to meet the requirement. When the foil is seen as "something else," the gap gets pulled wider; when it is seen as "one of the same group," judgments get pulled closer instead, which is called assimilation. For example, when a school produces a famous graduate whom everyone knows, people think more highly of the whole school.