Two Factories and a Dragon

  • Soil:
    By: Alfie Chadwick Date: July 6, 2025 Flower
    Seeds:
  • Blair wakes before dawn and looks out their window. The gray valley is still shrouded in mist, but already the villagers of Northvein are stirring. They look up to the cloud-covered mountain casting a shadow over the valley and hear the rumble of the dragon sleeping within.

    The dragon has looked after the valley for as long as history remembers and has gifted the villagers two factories, one for bread and one for toys. All it asks for in return is some of the gold made from the sale of these goods, which is hauled up the mountainside once a month.

    Blair watches the villagers walk towards the factories at the edge of the village, troves of people in their gray clothing hobbling along the cobblestone streets. Some stop at the shrine in the middle of town, pausing for a moment to pray to the moon goddess who watches over the valley—some for good fortune, some for good wages, and some for guidance as to which factory to work at today.

    All the villagers — including Blair — don’t have fixed jobs. Instead, they wake up each morning and choose which factory to go to. They are all equally skilled at making toys as they are at making bread, so the decision for some can be quite difficult. Some toss coins, some look at tea leaves, and some pray for guidance. But Blair — who was partial to a coin flip — wanted to try something new.

    How much Can I Earn?

    Blair started thinking the previous evening, on their walk back from the market, that surly there is a best way to pick out which factory to go to. The inhabitants of Northvein take little into account when picking which factory to go to besides the weight of their purses at the end of the day. The way that income is determined in the village is by equally dividing the profits for the day among the workers in each factory, after, of course, the dragon has taken their share of the earnings.

    Blair pulls out a notepad and sits down at a table by the windowsill. They write, in scrawly handwriting:

    \[ W = (1-R)X \cdot P \]

    Noting in their head \(W\) is the wage, \(R\) is the cut the dragon takes, \(X\) is the number of toys or loaves of bread they can make in a day, and \(P\) is how much gold the goods can fetch at the market.

    Doing the maths in their head, they quickly take a guess as to how much they might earn today.

    How much does everything cost?

    As the streams of people outside their window started to thin, Blair realised that to work out how much they could earn, they needed to work out how much gold could be fetched for toys and bread at the market. They packed their notepad into their bag and flipped the coin in their pocket; heads. They walked down to the toy factory and started their work for the day.

    After work – like the rest of the villagers of NorthVein – Blair walked to the town square for the market. There were various stalls selling all sorts of toys, but Blair, and the rest of the village, first headed to the bread stall to pick up the food they need for the day.

    The smell of fresh bread emanates from the stall, with each and every person picking up their one loaf to eat until the next market. The bread doesn’t last long, it often goes stale overnight – but there is normally enough to go around.

    Blair pulls out their notepad and scribbles down the price of bread and the price of toys. When everyone is efficient at making bread, the cost of the bread is pretty low because they don’t need to pay many workers to make the 100 loaves for the day. In contrast, when the price of toys is high, or the dragon’s share is low, the price of bread can skyrocket, as the wages earned by the toy makers allow them to pay more for bread, so the bakers charge more. Blair is always hopeful that the bread doesn’t take up too much of their income, because that means that they can go and buy more toys.

    Blair also draws a couple of charts. They realise that no matter what, assuming everyone can afford bread, 100 loaves will be bought, one for each villager. This means that while the price of bread will vary, the quantity won’t. In contrast, the price of toys will never change, but the quantity will, with the number of toys being sold being proportional to the amount of money left over after buying the bread.

    Shoving their notebook back into their bag, along with the half-eaten loaf of bread and their new toys, Blair began the walk home along the damp cobbled streets, with the sun setting over the valley. They paused next to the shrine. Only a few coins sat in the offering bowl, a thanks to the abundance that the moon goddess had granted them. Sometimes, when bread is scarce, Blair sees the offering bowl full of coins, given in the hope that the next day will bring better fortunes.

    Who makes the bread?

    Unlike toys, bread is a trickier business. There’s no external market for it, so the only buyers are the 100 villagers who each want exactly one loaf per day. That means the total money spent on bread is fixed — no matter how many loaves are made, only 100 will be bought. All the villagers know that the best way to go about bread making is to only make 100 loaves; it always seems that some hive mind ensures they only make that many. Capturing this in writing, Blair notes:

    \[ L_b = \frac{100}{X} \]

    So if fewer people go to the bread factory, the profits are split among fewer workers — each one gets more. But if more villagers show up, the profits are divided more thinly. This means that the wage for bread workers depends on how many of them there are. Blair again notes down this relationship.

    \[ W_b = \frac{(1-R)X \cdot 100 \cdot P_b}{L_b} \]

    As more villagers choose to work at the bread factory, \(L_b\) increases, and so \(W_b\) falls. Blair heard that some eagle-eyed villagers are keeping track of this kind of disparity and wait until the last minute to choose which factory to go to. This will keep happening until all the workers see that \(W_t\) is going to be higher than \(W_b\), meaning that eventually, the workers will self-allocate — each picking the factory that benefits them the most — until \(W_b = W_t\). Blair
    couldn’t believe it – did everyone truly earn the same wage? They thought back
    to the market and realised that everyone did seem to have the same number of
    toys, so maybe this is true.

    How much is made?

    At lunch, Blair pulls out their notepad again. Content with the knowledge that they are earning as much money as possible, they now have a new question: What is happening on the days when people go hungry?

    They start by working out all the possible combinations of bread and toys that the village can produce as a whole. They know that the wages will be balanced when 100 loaves of bread are made, so they assume that this will always be true.

    Knowing that the villagers are going to allocate themselves so that the wage for
    bread and the wage for toys are the same, Blair equates the two and trys to work
    out as much information about the economy of the village that they can

    \[ \frac{(1 - R) \times X \times 100 \times P_b}{L_b} = (1 - R) \times X \times P_t \]

    \[ \frac{100 \times P_b}{L_b} = P_t \]

    Since the volume of bread produced should always be 100, and each worker produces \(X\) loaves:

    \[ L_b = \frac{100}{X} \]

    \[ P_b = \frac{L_b \times P_t}{100} = \frac{P_t}{X} \]

    This price \(P_b\) clears the market for bread and ensures wages are equal, so no worker wants to switch factories.

    Finally, since the village has 100 workers in total, the toy factory labour is:

    \[ L_t = 100 - L_b = 100 - \frac{100}{X} \]

    Doing this, Blair has managed to work out a set of equations that can tell them
    anything they may want to know about the economy in NorthVein.

    • The number of workers at the bread factory: \(L_b = \frac{100}{X}\)
    • The number of workers in the toy factory: \(L_t = 100 - \frac{100}{X}\)
    • The amount of bread produced: \(Q_b = \frac{100X}{X} \cdot X = 100\)
    • The number of toys produced: \(Q_t = (100 - \frac{100}{X})\cdot X = 100X-100\)
    • The wage of all the workers: \(W = (1-R)X\cdot P_t\)
    • The price of bread at the maket: \(P_b = \frac{P_t}{X}\)
    • The amount of bread bought at the market \(D_b = 100\)
    • The number of toys bought at the market \(D_t = \frac{100(W-P_b)}{P_t}\)

    Who Goes Hungry?

    Now that Blair knows how to describe the economy, they are back to their question: Why do people go hungry?

    When Blair can’t get bread, it is because the price for the bread at the market is greater than the wage that they get paid for their day of work; in short, \(W < P_b\). Knowing the equations for both these values, Blair works out which scenarios lead to the cost of bread becoming too high.

    \[ (1-R)X\cdot P_t < \frac{P_t}{X} \] \[ 1-R < \frac{1}{X^2} \]

    Blair gasps. When the villager complains to the dragon, the dragon always blames their low productivity for their inability to afford bread. But Blair realised that the dragon’s rent is equally to blame, if not more so.

    Who wins?

    Blair continues scribbling on their notepad. If the dragon is sometimes taking away the ability to pay for bread, surley they are also taking away the abillity to pay for toys too.