LibraryQuant puzzles

Two Price Cards With the Same Two Digits

Quant puzzle · intro · free, full solution

The question

Two stalls sell the same boxes of the same thing and deliver them.

Stall A. Four dollars a box, plus a flat seven dollars for the delivery, however many boxes are ordered.

Stall B. Seven dollars a box, plus a flat four dollars for the delivery, however many boxes are ordered.

The same two numbers appear on both cards. They are doing different jobs.

Four questions.

  1. Write each stall's total as a rule, using a letter for the number of boxes.
  2. What does an order of five boxes cost at each stall?
  3. Is there an order size at which the two cards charge exactly the same? If so, which one, and what does it cost?
  4. Somebody objects that a letter cannot be added to a plain number, because n stands for boxes and boxes are not dollars. What is wrong with that?

Hint

Write each card as a rule in words first: what is paid once, and what is paid again for each extra box. Then try a few small orders at both stalls.

The idea behind it

A letter is a box waiting for a number, and the whole skill is putting a number in it. The trap is what the letter multiplies: a charge that happens once sits outside the multiplication, so two cards built from the same digits are not the same card.

Worked solution

Writing the two rules

Let n stand for the number of boxes. A letter used this way is something called a Variable. It does exactly the job a printed label on a form does: it names an empty box that a number will go into.

Stall A. Every box costs 4 dollars, so n boxes cost 4 times n, written 4n. The delivery costs 7 dollars once, whatever n is, so it sits outside the multiplication and is simply added on.

cost at A = 7 + 4n

Stall B. Every box costs 7, so the repeating part is 7n. The delivery costs 4, once.

cost at B = 4 + 7n

Two rules built from the same two digits, and the digits have swapped jobs. In A the 4 repeats and the 7 happens once. In B it is the other way round.

Five boxes

Substituting is the whole skill: put the number in the box and the formula collapses into arithmetic anybody can already do.

At stall A, with n equal to 5: 7 + 4 times 5, which is 7 + 20, which is 27 dollars.

At stall B, with n equal to 5: 4 + 7 times 5, which is 4 + 35, which is 39 dollars.

Twenty seven against thirty nine. The two cards are not close, and the same two digits produced both.

Notice what a common slip would have given. Treating the card as "everything on it, times the boxes" gives 5 times 11, which is 55, at both stalls. That answer has the delivery charged five times over, once for each box. It has the merit of being wrong in the same way at both stalls, which is how it escapes notice. The delivery happens once. Once means it is not inside the multiplication.

Where the two cards agree

Try one box. At A: 7 + 4, which is 11. At B: 4 + 7, which is 11. They agree.

That is not a coincidence and it does not need an equation to see. At one box, each card charges one box price plus one delivery. Both cards are built from a 4 and a 7, so both come to the same total whichever number is playing which part.

Above one box they separate, and they separate at a steady three dollars a box, because A charges 4 a box against B's 7. Two boxes: 15 against 18. Three boxes: 19 against 25. Ten boxes: 47 against 74.

Below one box there is nothing to check, since half a box is not for sale.

So the answer is one box, at 11 dollars, and stall A is cheaper on every order larger than that.

Line chart of Total cost (dollars) against Boxes ordered. Stall A. 1: 11; 2: 15; 3: 19; 5: 27. Stall B. 1: 11; 2: 18; 3: 25; 5: 39.Total cost (dollars)102030401235Boxes orderedStall BStall Aboth cards charge 11 dollarshereLine chart of Total cost (dollars) against Boxes ordered. Stall A. 1: 11; 2: 15; 3: 19; 5: 27. Stall B. 1: 11; 2: 18; 3: 25; 5: 39.Total cost (dollars)Stall AStall B102030401235Boxes orderedboth cards charge11 dollars here
The two cards meet at one box and never meet again, and past that point they separate at a steady 3 dollars a box, because stall B charges 7 a box against stall A's 4.

The objection about boxes

The objection is that n stands for boxes, so 4n is boxes and cannot be added to a number of dollars.

The letter does not stand for boxes. It stands for the number of boxes, which is a number and nothing else. The difference between those two sentences is the whole of the confusion. If n is 5, then 4n is 4 times 5, which is 20, and 20 is a count of dollars because 4 was a price. The letter is a slot for a number, never a shorthand for the object being counted.

This matters more than it looks, because the objection can be dressed up to sound careful. Somebody writes 4a + 7b for four apples and seven bananas, reads their own notation back as a shopping list rather than as money, and then cannot say what the answer is measured in. A formula carries no units of its own. The units live in the words around it, which is why the words around it are not decoration. If a letter really did stand for the thing rather than for how many of it there are, what number would go in the box?

One check

A taxi charges 5 dollars to start and 3 dollars a kilometre. Write it, then run a ride of four kilometres.

fare = 5 + 3k, and with k equal to 4 that is 5 + 12, which is 17 dollars. If the starting charge went missing, notice that it happens once and does not depend on k, so it sits outside the multiplication. If 32 came out, the starting charge was multiplied by the kilometres, which is the same slip as charging five deliveries for one order.

In short

Stall A costs 7 + 4n dollars and stall B costs 4 + 7n dollars, where n is the number of boxes. At five boxes that is 27 dollars and 39 dollars. The two cards agree at exactly one box, where each comes to 11 dollars, and stall A is cheaper for every larger order.

Learn quant finance on Thuztra Learn

Thuztra Learn teaches the maths of quant finance from zero, in short lessons, for readers who are unsure of it. Three questions in the app build your quant roadmap, free. Membership is a paid subscription. See what Thuztra Learn is and what it costs, or see the whole Core quant curriculum.

Get the app and answer the three questions:

Download on the Microsoft Store Download for Android

On Android, the app is a direct download, not a Google Play listing. Which devices, and what each one needs.

Further reading

Related problems

Topics

Also in the library