# Two-step equations

> Solve ax + b = c for x, undoing the constant first and then the coefficient.

A free printable math worksheet from Pencil Ready. Set it up and print it at https://pencilready.com/worksheets/algebra-two-step/.

## Know before you start

- Arithmetic facts for [addition](https://pencilready.com/worksheets/add.md), [subtraction](https://pencilready.com/worksheets/subtract.md), [multiplication](https://pencilready.com/worksheets/multiply.md), and [division](https://pencilready.com/worksheets/simple-divide.md).
- A letter as a placeholder for an unknown number.
- [One-step](https://pencilready.com/worksheets/algebra-one-step.md) equations, and inverse operations.

## With mastery, the student can

- Undo operations in reverse order — subtract the constant, then divide by the coefficient.
- Keep the equation balanced — do the same thing to both sides.
- Read three forms — (ax) + b = c, b + (ax) = c, and (ax) − b = c.

## Generate the PDF

`GET https://pencilready.com/api/worksheets/algebra-two-step` returns the worksheet as a PDF. Every option is a query parameter; leave one out to get its default. The same `seed` with the same options always gives the same worksheet.

### Examples

- Default settings, new problems on every request: https://pencilready.com/api/worksheets/algebra-two-step
- Seed 42, with an answer key: https://pencilready.com/api/worksheets/algebra-two-step?seed=42&include_answers=true

### Options for this worksheet

| Parameter | Values | Description |
|---|---|---|
| `a_range` | string, e.g. `2-10` | Coefficient range. Default `2-10`. |
| `b_range` | string, e.g. `1-30` | Constant range. Default `1-30`. |
| `x_range` | string, e.g. `0-20` | Answer (`x`) range. Default `0-20`. |
| `variable` | string | Variable letter. Default `x`. |
| `implicit` | `true`, `false` | Write the coefficient as `4x` instead of `4 · x`. Default false. |
| `mix_forms` | `true`, `false` | Vary the equation form (e.g. `b + a·x = c`). Default true. |

### Options for every worksheet

| Parameter | Values | Description |
|---|---|---|
| `format` | `pdf`, `png`, `svg` | Output format. Default `pdf`. pdf: printable, any page count. png / svg: single page only; multi-page worksheets and include_answers return 400. |
| `seed` | integer | Seed for reproducible output. Omit for a random worksheet. |
| `problems` | integer | Number of problems. Default depends on the worksheet type. |
| `paper` | `a4`, `us-letter` | Paper size. Default `a4`; `letter` is accepted as an alias for `us-letter`. a4 or us-letter (alias: letter). Problem count and layout are identical on both. |
| `locale` | `us`, `no` | Printed language and number notation. Default `us`. us: English copy, decimal point, × and ÷. no: Norwegian Bokmål copy, decimal comma, · and :. |
| `solve_first` | `true`, `false` | Render the first problem as a worked example. |
| `include_answers` | `true`, `false` | Append an answer-key page showing just the final answers (PDF only). |
| `student_name` | string | Pre-fill the student name on the header in a handwriting font. |

Full API reference (OpenAPI): https://pencilready.com/openapi.json

## Languages

Worksheets print in each language below. Choose one with the `locale` query parameter, which sets the printed instructions and number notation. Each language also has its own version of the worksheet page.

- English (`en`): `locale=us`, page https://pencilready.com/worksheets/algebra-two-step/
- Norsk (`nb`): `locale=no`, page https://pencilready.com/no/worksheets/algebra-two-step/
