🎉 Introduction

Welcome to Set Up Equations and Inequalities! In earlier courses you learned to identify variables, build expressions, and tell the difference between expressions, equations, and inequalities. Now you will put all of that knowledge into action by writing equations that capture situations where a quantity must hit an exact target. The focus here is on translating real-world scenarios into correct algebraic form, not on solving them.

Before we jump into writing equations, let's build some intuition. Think about everyday moments when a number must match exactly. If a banner is being made to fit a display frame that is exactly 75 inches wide, the banner’s width needs to equal exactly 75 inches. If a recipe calls for 2 cups of flour spread equally across 4 batches, each batch needs exactly 24\frac{2}{4} of a cup. In these situations, "close enough" does not count — the computed amount and the target must be the same.

This idea of an exact match is what the equals sign represents. As you may recall, an equation uses the symbol == to say that two quantities are equal. Whenever a situation demands that a calculated total matches a stated amount, an equation is the right tool.

In this lesson, you will learn to:

  • Recognize exact-target situations that call for an equation rather than an inequality.
  • Build an expression for the computed quantity using the variable and operations described in the problem.
  • Set the computed quantity equal to the target to create a clean, one-variable equation.
The Core Move: Computed Quantity Equals Target 🎯

Every exact-target equation follows a simple pattern:

computed quantity=target\text{computed quantity} = \text{target}

One side of the equation holds the expression you build from the situation, which usually involves a variable. The other side holds the known target value. For example, suppose you ride the bus at $2.50 per ride and want the total fare to equal $25. If we let rr stand for the number of rides, the equation is:

2.50r=252.50 \cdot r = 25
Translating Step by Step 🪜

When you face a word problem, a short checklist keeps you from missing anything on the way.

  1. Identify the unknown and assign it a variable with a clear definition (e.g., "let xx = dollars saved per week").
  2. Build an expression for the quantity being computed, using the operations described in the problem.
  3. Set the expression equal to the target value stated in the problem.
Flowchart showing the three-step process for translating a word problem into an equation

Let's walk through an example. "You save xx dollars per week for 8 weeks to reach a goal of $320."

Following the steps: the unknown is xx (dollars saved per week), the computed quantity is 8x8x (8 weeks times the weekly amount), and the target is 320. That gives us:

Equations with More Than One Operation 🧩

Some situations involve a starting amount plus a repeated change. The same three steps still apply, but the expression on the computed side will have more than one operation.

Consider this scenario: "You have $50 in a savings account and deposit $25 each week. You want the balance to reach exactly $200." Let ww = the number of weeks.

  • Starting amount: 50
  • Weekly addition: 25w25w
  • Target: 200
50+25w=20050 + 25w = 200 Illustration of a savings account with a starting balance, weekly deposits, and a target balance
Recognizing Exact-Match Situations 🔍

Not every real-world problem calls for an equation. Some situations set a limit ("spend no more than $50") or describe a range ("between 60 and 80 degrees"). Those call for inequalities, which you will explore in upcoming lessons. An equation is the right choice only when the problem states that a quantity must equal a specific value.

The table below highlights common phrases and what they signal:

Phrase in the problemWhat it tells you
"is equal to"Use ==
"totals exactly"Use ==
"costs exactly"Use ==
"each person pays [specific amount]"Use ==
"reaches a goal of"Use
Conclusion and Next Steps

In this lesson you learned that whenever a situation demands an exact match between a computed quantity and a stated target, you write an equation. The core move is straightforward: build an expression for the computed side, place the target on the other side, and connect them with an equals sign. You also saw how to handle both single-operation and multi-operation scenarios, and how to tell an exact-target situation apart from one that merely sets a limit.

Up next is a set of hands-on exercises where you will write your own equations for real-world scenarios, from bus fares to savings goals to splitting a dinner bill. Practice translating the words into algebra, and remember — right now the goal is setting up the equation correctly, not solving it.

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal