// Numbas version: exam_results_page_options {"name": "Solving linear equations: two step", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "c", "ans1", "d", "f", "g", "ans2", "h", "j", "k", "ans3", "l", "m", "n", "ans4", "p", "q", "r", "ans5", "s", "t", "u", "ans6"], "name": "Solving linear equations: two step", "tags": ["algebra", "balancing equations", "Linear equations", "linear equations", "rearranging equations", "solving equations", "Solving equations", "two step equations"], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [{"stepsPenalty": "1", "prompt": "

Given $\\var{a}x+\\var{b}=\\var{c}$, solving for $x$ gives $x=$ [[0]].

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": true, "variableReplacements": [], "maxValue": "{c-b}/{a}", "minValue": "{c-b}/{a}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $\\var{a}x+\\var{b}=\\var{c}$, we can subtract $\\var{b}$ from both sides to get $\\var{a}x$ by itself, and then divide both sides by $\\var{a}$ to get $x$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{a}x+\\var{b}$$=$$\\var{c}$ 
 
$\\var{a}x+\\var{b}-\\var{b}$$=$$\\var{c}-\\var{b}$
 
$\\var{a}x$$=$$\\var{c-b}$
 
$\\displaystyle{\\frac{\\var{a}x}{\\var{a}}}$ $=$$\\displaystyle{\\frac{\\var{c-b}}{\\var{a}}}$
 
$x$$=$$\\displaystyle{\\simplify{{c-b}/{a}}}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Given $\\var{d}-\\var{f}y=\\var{g}$,  $y=$ [[0]].

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": true, "variableReplacements": [], "maxValue": "{d-g}/{f}", "minValue": "{d-g}/{f}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $\\var{d}-\\var{f}y=\\var{g}$, we can subtract $\\var{d}$ from both sides to get $-\\var{f}y$ by itself, and then divide both sides by $-\\var{f}$ to get $y$ by itself.

\n

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{d}-\\var{f}y$$=$$\\var{g}$ 
 
$\\var{d}-\\var{f}y-\\var{d}$$=$$\\var{g}-\\var{d}$
 
$-\\var{f}y$$=$$\\var{g-d}$
 
$\\displaystyle{\\frac{\\var{-f}y}{\\var{-f}}}$ $=$$\\displaystyle{\\frac{\\var{g-d}}{\\var{-f}}}$
 
$y$$=$$\\displaystyle{\\simplify{{g-d}/{-f}}}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Rearrange $\\displaystyle{\\frac{z}{\\var{h}}}-\\var{j}=\\var{k}$ to determine the value of $z$.

\n

$z=$ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans3}", "minValue": "{ans3}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $\\displaystyle{\\frac{z}{\\var{h}}}-\\var{j}=\\var{k}$, we add $\\var{j}$ to both sides to get $\\displaystyle{\\frac{z}{\\var{h}}}$ by itself and then multiply both sides by $\\var{h}$ to get $z$ by itself.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\displaystyle{\\frac{z}{\\var{h}}}-\\var{j}$$=$$\\var{k}$ 
 
$\\displaystyle{\\frac{z}{\\var{h}}}-\\var{j}+\\var{j}$$=$$\\var{k}+\\var{j}$
 
$\\displaystyle{\\frac{z}{\\var{h}}}$$=$$\\var{k+j}$
 
$\\displaystyle{\\frac{z}{\\var{h}}\\times\\var{h}}$ $=$$\\var{k+j}\\times \\var{h}$
 
$z$$=$$\\var{ans3}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Solve $\\displaystyle{\\frac{a-\\var{l}}{\\var{m}}}=\\var{n}$ for $a$.

\n

$a=$ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": false, "variableReplacements": [], "maxValue": "{ans4}", "minValue": "{ans4}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $\\displaystyle{\\frac{a-\\var{l}}{\\var{m}}}=\\var{n}$, we can multiply both sides by $\\var{m}$ to get $a-\\var{l}$ by itself and then add $\\var{l}$ to both sides to get $a$ by itself.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\displaystyle{\\frac{a-\\var{l}}{\\var{m}}}$$=$$\\var{n}$ 
 
$\\displaystyle{\\frac{a-\\var{l}}{\\var{m}}}\\times \\var{m}$$=$$\\var{n}\\times\\var{m}$
 
$a-\\var{l}$$=$$\\var{n*m}$
 
$a-\\var{l}+\\var{l}$ $=$$\\var{n*m}+\\var{l}$
 
$a$$=$$\\var{ans4}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Solve $\\var{p}=\\var{q}(\\var{r}+b)$.

\n

$b=$ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": true, "variableReplacements": [], "maxValue": "{p-r*q}/{q}", "minValue": "{p-r*q}/{q}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $\\var{p}=\\var{q}(\\var{r}+b)$, we can divide both sides by $\\var{q}$ to get $\\var{r}+b$ by itself and then subtract $\\var{r}$ from both sides to get $b$ by itself.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\var{p}$$=$$\\var{q}(\\var{r}+b)$ 
 
$\\displaystyle{\\frac{\\var{p}}{\\var{q}}}$$=$$\\displaystyle{\\frac{\\var{q}(\\var{r}+b)}{\\var{q}}}$
 
$\\displaystyle{\\simplify{{p}/{q}}}$$=$$\\var{r}+b$
 
$\\displaystyle{\\simplify{{p}/{q}}}-\\var{r}$ $=$$\\var{r}+b-\\var{r}$
 
$\\displaystyle{\\simplify{{p-r*q}/{q}}}$$=$$b$
 
$b$$=$$\\displaystyle{\\simplify{{p-r*q}/{q}}}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}, {"stepsPenalty": "1", "prompt": "

Solve $\\displaystyle{\\frac{\\var{s}w}{\\var{t}}}=\\var{u}$.

\n

$w=$ [[0]]

", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "gaps": [{"allowFractions": true, "variableReplacements": [], "maxValue": "{u*t}/{s}", "minValue": "{u*t}/{s}", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": true, "showCorrectAnswer": true, "scripts": {}, "marks": 1, "type": "numberentry", "showPrecisionHint": false}], "steps": [{"prompt": "

Given $\\displaystyle{\\frac{\\var{s}w}{\\var{t}}}=\\var{u}$, we can multiply both sides by $\\var{t}$ to get $\\var{s}w$ by itself and then divide both sides by $\\var{s}$ to get $w$ by itself.

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\displaystyle{\\frac{\\var{s}w}{\\var{t}}}$$=$$\\var{u}$ 
 
$\\displaystyle{\\frac{\\var{s}w}{\\var{t}}}\\times\\var{t}$$=$$\\var{u}\\times\\var{t}$
 
$\\var{s}w$$=$$\\var{u*t}$
 
$\\displaystyle{\\frac{\\var{s}w}{\\var{s}}}$ $=$$\\displaystyle{\\frac{\\var{u*t}}{\\var{s}}}$
 
$w$$=$$\\displaystyle{\\simplify{{u*t}/{s}}}$
", "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "information"}], "scripts": {}, "marks": 0, "showCorrectAnswer": true, "type": "gapfill"}], "statement": "", "variable_groups": [], "variablesTest": {"maxRuns": "100", "condition": ""}, "variables": {"ans1": {"definition": "(c-b)/a", "templateType": "anything", "group": "Ungrouped variables", "name": "ans1", "description": ""}, "ans2": {"definition": "(g-d)/(-f)", "templateType": "anything", "group": "Ungrouped variables", "name": "ans2", "description": ""}, "ans3": {"definition": "(k+j)*h", "templateType": "anything", "group": "Ungrouped variables", "name": "ans3", "description": ""}, "ans4": {"definition": "n*m+l", "templateType": "anything", "group": "Ungrouped variables", "name": "ans4", "description": ""}, "ans5": {"definition": "p/q-r", "templateType": "anything", "group": "Ungrouped variables", "name": "ans5", "description": ""}, "ans6": {"definition": "u*t/s", "templateType": "anything", "group": "Ungrouped variables", "name": "ans6", "description": ""}, "a": {"definition": "random(-12..12 except [0,-1,1])", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(-12..12 except [0,b])", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(2..12 except a)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(1..12 except [f,g])", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "random(-12..12 except [0])", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "random(list(2..12)+[100])", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "h": {"definition": "random(list(2..12)+[20,50,100,200])", "templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": ""}, "k": {"definition": "random(-13..0 except -j)", "templateType": "anything", "group": "Ungrouped variables", "name": "k", "description": ""}, "j": {"definition": "random(2..12 except [h])", "templateType": "anything", "group": "Ungrouped variables", "name": "j", "description": ""}, "m": {"definition": "random(2..12 except l)", "templateType": "anything", "group": "Ungrouped variables", "name": "m", "description": ""}, "l": {"definition": "random(2..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "l", "description": ""}, "n": {"definition": "random(-12..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "n", "description": ""}, "q": {"definition": "random(-12..12 except [0,1,-1])", "templateType": "anything", "group": "Ungrouped variables", "name": "q", "description": ""}, "p": {"definition": "random(-12..12 except[0,q])", "templateType": "anything", "group": "Ungrouped variables", "name": "p", "description": ""}, "s": {"definition": "random([-13,-11,-7,-5,-3,-2,13,11,7,5,3,2])", "templateType": "anything", "group": "Ungrouped variables", "name": "s", "description": ""}, "r": {"definition": "random(1..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "r", "description": ""}, "u": {"definition": "random(-12..12 except 0)", "templateType": "anything", "group": "Ungrouped variables", "name": "u", "description": ""}, "t": {"definition": "random([13,11,7,5,3,2] except s)", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}