// Numbas version: exam_results_page_options {"name": "Solving linear equations: collecting like terms and solving", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"sortAnswers": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "stepsPenalty": "1", "steps": [{"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "variableReplacements": [], "customName": "", "type": "information", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "prompt": "

Given $\\var{a}x+\\var{b}=\\var{c}x$, we can subtract $\\var{a}x$ from both sides to collect like terms, and then divide both sides by the coefficient of $x$ 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\n\n\n\n\n\n\n\n\n\n
$\\var{a}x+\\var{b}$$=$$\\var{c}x$ 
 
$\\var{a}x+\\var{b}-\\var{a}x$$=$$\\var{c}x-\\var{a}x$
 
$\\var{b}$$=$$\\var{c-a}x$
 
$\\displaystyle{\\frac{\\var{b}}{\\var{c-a}}}$ $=$$\\displaystyle{\\frac{\\var{c-a}x}{\\var{c-a}}}$
 
$\\displaystyle{\\simplify{{b}/{c-a}}}$$=$$x$
 
$x$$=$$\\displaystyle{\\simplify{{b}/{c-a}}}$
\n

\n

There is often more than one way to solve an equation, one strategy used above in the first step was to get all the $x$'s one the side with the most $x$'s, that way you end up with a postive number of $x$'s. This is not necessary, we could have put the all the $x$'s on the left hand side but notice in this question we then would have had to move the $\\var{b}$ on to the right hand side, so it would have required more work, but nevertheless that method would result in the same result for $x$.

", "marks": 0, "showCorrectAnswer": true}], "variableReplacements": [], "customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "gaps": [{"customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "customName": "", "maxValue": "{-b}/{a-c}", "type": "numberentry", "unitTests": [], "correctAnswerFraction": true, "useCustomName": false, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "scripts": {}, "variableReplacements": [], "minValue": "{-b}/{a-c}", "showFractionHint": true, "allowFractions": true, "marks": 1, "showCorrectAnswer": true}], "prompt": "

We can solve $\\var{a}x+\\var{b}=\\var{c}x$ by collecting like terms and rearranging for $x$. This gives $x=$ [[0]].

", "marks": 0, "showCorrectAnswer": true, "unitTests": []}, {"sortAnswers": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "stepsPenalty": "1", "steps": [{"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "variableReplacements": [], "customName": "", "type": "information", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "prompt": "

Given $\\var{l}(\\var{m}w-\\var{n})=\\var{p}w+\\var{q}$, we can expand the brackets, get all the $w$'s on the left hand side and all the numbers on the right hand side, and then divide both sides by the coefficient of $w$ 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\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{l}(\\var{m}w-\\var{n})$$=$$\\var{p}w+\\var{q}$ 
 
$\\var{l*m}w-\\var{n*l}$$=$$\\var{p}w+\\var{q}$
 
$\\var{l*m}w-\\var{n*l}-\\var{p}w$$=$$\\var{p}w+\\var{q}-\\var{p}w$
 
$\\var{l*m-p}w-\\var{n*l}$$=$$\\var{q}$
 
$\\var{l*m-p}w-\\var{n*l}+\\var{n*l}$$=$$\\var{q}+\\var{n*l}$
 
$\\var{l*m-p}w$$=$$\\var{q+n*l}$
 
$\\displaystyle{\\frac{\\var{l*m-p}w}{\\var{l*m-p}}}$$=$$\\displaystyle{\\frac{\\var{q+n*l}}{\\var{l*m-p}}}$
 
$w$$=$$\\displaystyle{\\simplify{{q+n*l}/{l*m-p}}}$
", "marks": 0, "showCorrectAnswer": true}], "variableReplacements": [], "customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "gaps": [{"customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "customName": "", "maxValue": "{q+n*l}/{l*m-p}", "type": "numberentry", "unitTests": [], "correctAnswerFraction": true, "useCustomName": false, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "scripts": {}, "variableReplacements": [], "minValue": "{q+n*l}/{l*m-p}", "showFractionHint": true, "allowFractions": true, "marks": 1, "showCorrectAnswer": true}], "prompt": "

Solve $\\var{l}(\\var{m}w-\\var{n})=\\var{p}w+\\var{q}$ for $w$.

\n

$w=$ [[0]]

", "marks": 0, "showCorrectAnswer": true, "unitTests": []}, {"sortAnswers": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "stepsPenalty": "1", "steps": [{"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "variableReplacements": [], "customName": "", "type": "information", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "prompt": "

Given $\\displaystyle{\\frac{\\var{d}y}{y-\\var{f}}}=\\var{g}$, we can multiply both sides by $(y-\\var{f})$ to get rid of the fraction, get all the $y$'s on one side and the numbers on the other side, and then divide both sides by the coefficient of $y$ 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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$\\displaystyle{\\frac{\\var{d}y}{y-\\var{f}}}$$=$$\\var{g}$ 
 
$\\displaystyle{\\frac{\\var{d}y}{y-\\var{f}}}\\times(y-\\var{f})$$=$$\\var{g}\\times (y-\\var{f})$
 
$\\var{d}y$$=$$\\var{g}y+\\var{-g*f}$
 
$\\var{d}y+\\var{-g}y$ $=$$\\var{g}y+\\var{-g*f}+\\var{-g}y$
 
$\\var{d-g}y$$=$$\\var{-g*f}$
 
$\\displaystyle{\\frac{\\var{d-g}y}{\\var{d-g}}}$$=$$\\displaystyle{\\frac{\\var{-g*f}}{\\var{d-g}}}$
 
 $y$$=$$\\displaystyle{\\simplify{{-g*f}/{d-g}}}$
", "marks": 0, "showCorrectAnswer": true}], "variableReplacements": [], "customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "gaps": [{"customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "customName": "", "maxValue": "{-g*f}/{d-g}", "type": "numberentry", "unitTests": [], "correctAnswerFraction": true, "useCustomName": false, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "scripts": {}, "variableReplacements": [], "minValue": "{-g*f}/{d-g}", "showFractionHint": true, "allowFractions": true, "marks": 1, "showCorrectAnswer": true}], "prompt": "

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

", "marks": 0, "showCorrectAnswer": true, "unitTests": []}, {"sortAnswers": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "stepsPenalty": "1", "steps": [{"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "variableReplacements": [], "customName": "", "type": "information", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "prompt": "

Given $\\displaystyle{\\frac{z+\\var{h}}{z+\\var{j}}}=\\var{k}$, we can multiply both sides by $(z+\\var{j})$ to get rid of the fraction, get all the $z$'s on one side and the numbers on the other side, and then divide both sides by the coefficient of $z$ 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\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}}{z+\\var{j}}}$$=$$\\var{k}$ 
 
$\\displaystyle{\\frac{z+\\var{h}}{z+\\var{j}}}\\times(z+\\var{j})$$=$$\\var{k}\\times (z+\\var{j})$
 
$z+\\var{h}$$=$$\\var{k}z+\\var{k*j}$
 
$z+\\var{h}-\\var{k}z$ $=$$\\var{k}z+\\var{k*j}-\\var{k}z$
 
$\\var{1-k}z+\\var{h}$$=$$\\var{k*j}$
 
$\\var{1-k}z+\\var{h}-\\var{h}$$=$$\\var{k*j}-\\var{h}$
 
 $\\var{1-k}z$$=$$\\var{k*j-h}$
 
$\\displaystyle{\\frac{\\var{1-k}z}{\\var{1-k}}}$$=$$\\displaystyle{\\frac{\\var{k*j-h}}{\\var{1-k}}}$
 
$z$$=$$\\displaystyle{\\simplify{({k*j-h})/({1-k})}}$
", "marks": 0, "showCorrectAnswer": true}], "variableReplacements": [], "customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "gaps": [{"customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "customName": "", "maxValue": "{k*j-h}/{1-k}", "type": "numberentry", "unitTests": [], "correctAnswerFraction": true, "useCustomName": false, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "scripts": {}, "variableReplacements": [], "minValue": "{k*j-h}/{1-k}", "showFractionHint": true, "allowFractions": true, "marks": 1, "showCorrectAnswer": true}], "prompt": "

Solve $\\displaystyle{\\frac{z+\\var{h}}{z+\\var{j}}}=\\var{k}$ for $z$.

\n

$z=$ [[0]]

", "marks": 0, "showCorrectAnswer": true, "unitTests": []}, {"sortAnswers": false, "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "stepsPenalty": "1", "steps": [{"extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "variableReplacements": [], "customName": "", "type": "information", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "prompt": "

Given $\\displaystyle{\\frac{x+\\var{add}}{\\var{denom1}}+\\frac{x}{\\var{denom2}}=\\var{right}}$, we can multiply both sides by $\\var{denom1}$ and by $\\var{denom2}$ to get rid of the fractions, get all the $x$'s on one side and the numbers on the other side, and then divide both sides by the coefficient of $x$ 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\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
$\\displaystyle{\\frac{x+\\var{add}}{\\var{denom1}}+\\frac{x}{\\var{denom2}}}$$=$$\\var{right}$ 
 
$\\displaystyle{\\left(\\frac{x+\\var{add}}{\\var{denom1}}\\right)\\times\\var{denom1}+\\left(\\frac{x}{\\var{denom2}}\\right)\\times\\var{denom1}}$$=$$\\var{right}\\times \\var{denom1}$(multiply all terms by $\\var{denom1}$)
 
$\\displaystyle{x+\\var{add}+\\frac{\\var{denom1}x}{\\var{denom2}}}$$=$$\\var{r1}$
 
$\\displaystyle{(x+\\var{add})\\times\\var{denom2}+\\left(\\frac{\\var{denom1}x}{\\var{denom2}}\\right)\\times\\var{denom2}}$ $=$$\\var{r1}\\times\\var{denom2}$(multiply all terms by $\\var{denom2}$)
 
$\\displaystyle{\\var{denom2}x+\\var{a2}+\\var{denom1}x}$$=$$\\var{r12}$
 
$\\var{sumdeno}x+\\var{a2}$$=$$\\var{r12}$(collect like terms)
 
 $\\var{sumdeno}x$$=$$\\var{r12}-\\var{a2}$(collect like terms)
 
$\\var{sumdeno}x$$=$$\\var{top}$
 
$x$$=$$\\displaystyle{\\simplify{{top}/({sumdeno})}}$(divide by the coefficient of $x$)
", "marks": 0, "showCorrectAnswer": true}], "variableReplacements": [], "customName": "", "type": "gapfill", "customMarkingAlgorithm": "", "useCustomName": false, "variableReplacementStrategy": "originalfirst", "scripts": {}, "gaps": [{"customMarkingAlgorithm": "", "correctAnswerStyle": "plain", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "customName": "", "maxValue": "{top}/{sumdeno}", "type": "numberentry", "unitTests": [], "correctAnswerFraction": true, "useCustomName": false, "variableReplacementStrategy": "originalfirst", "mustBeReducedPC": 0, "scripts": {}, "variableReplacements": [], "minValue": "{top}/{sumdeno}", "showFractionHint": true, "allowFractions": true, "marks": 1, "showCorrectAnswer": true}], "prompt": "

Solve $\\displaystyle{\\frac{x+\\var{add}}{\\var{denom1}}+\\frac{x}{\\var{denom2}}=\\var{right}}$.

\n

$x=$ [[0]]

", "marks": 0, "showCorrectAnswer": true, "unitTests": []}], "functions": {}, "variables": {"p": {"name": "p", "templateType": "anything", "description": "", "definition": "random(1..3)", "group": "Ungrouped variables"}, "r12": {"name": "r12", "templateType": "anything", "description": "", "definition": "r1*denom2", "group": "e"}, "g": {"name": "g", "templateType": "anything", "description": "", "definition": "random(-12..-1)", "group": "Ungrouped variables"}, "ans3": {"name": "ans3", "templateType": "anything", "description": "", "definition": "(k+j)*h", "group": "Ungrouped variables"}, "m": {"name": "m", "templateType": "anything", "description": "", "definition": "random(2..12)", "group": "Ungrouped variables"}, "h": {"name": "h", "templateType": "anything", "description": "", "definition": "random(1..12)", "group": "Ungrouped variables"}, "j": {"name": "j", "templateType": "anything", "description": "", "definition": "random(1..12 except h)", "group": "Ungrouped variables"}, "ans2": {"name": "ans2", "templateType": "anything", "description": "", "definition": "{g*f}/{d-g}", "group": "Ungrouped variables"}, "c": {"name": "c", "templateType": "anything", "description": "", "definition": "a+random(1..12)", "group": "Ungrouped variables"}, "q": {"name": "q", "templateType": "anything", "description": "", "definition": "random(1..12)", "group": "Ungrouped variables"}, "ans4": {"name": "ans4", "templateType": "anything", "description": "", "definition": "{q+n*l}/{l*m-p}", "group": "Ungrouped variables"}, "ans1": {"name": "ans1", "templateType": "anything", "description": "", "definition": "-b/(a-c)", "group": "Ungrouped variables"}, "primes": {"name": "primes", "templateType": "anything", "description": "", "definition": "shuffle([2,3,5,7,11])", "group": "e"}, "b": {"name": "b", "templateType": "anything", "description": "", "definition": "random(1..12)", "group": "Ungrouped variables"}, "f": {"name": "f", "templateType": "anything", "description": "", "definition": "random(2..12)", "group": "Ungrouped variables"}, "top": {"name": "top", "templateType": "anything", "description": "", "definition": "r12-a2", "group": "e"}, "eans": {"name": "eans", "templateType": "anything", "description": "", "definition": "denom2*(right*denom1-add)/(denom2+denom1)", "group": "e"}, "a": {"name": "a", "templateType": "anything", "description": "", "definition": "random(1..12)", "group": "Ungrouped variables"}, "denom1": {"name": "denom1", "templateType": "anything", "description": "", "definition": "primes[0]", "group": "e"}, "n": {"name": "n", "templateType": "anything", "description": "", "definition": "random(1..12)", "group": "Ungrouped variables"}, "k": {"name": "k", "templateType": "anything", "description": "", "definition": "random(1..12)", "group": "Ungrouped variables"}, "a2": {"name": "a2", "templateType": "anything", "description": "", "definition": "add*denom2", "group": "e"}, "l": {"name": "l", "templateType": "anything", "description": "", "definition": "random(2..12)", "group": "Ungrouped variables"}, "r1": {"name": "r1", "templateType": "anything", "description": "", "definition": "right*denom1", "group": "e"}, "add": {"name": "add", "templateType": "anything", "description": "", "definition": "primes[2]", "group": "e"}, "d": {"name": "d", "templateType": "anything", "description": "", "definition": "random(1..12)", "group": "Ungrouped variables"}, "denom2": {"name": "denom2", "templateType": "anything", "description": "", "definition": "primes[1]", "group": "e"}, "right": {"name": "right", "templateType": "anything", "description": "", "definition": "random(-5..5 except 0)", "group": "e"}, "sumdeno": {"name": "sumdeno", "templateType": "anything", "description": "", "definition": "denom1+denom2", "group": "e"}}, "tags": [], "variable_groups": [{"name": "e", "variables": ["primes", "denom1", "denom2", "add", "right", "eans", "r1", "a2", "r12", "top", "sumdeno"]}], "statement": "", "extensions": [], "ungrouped_variables": ["a", "b", "c", "ans1", "d", "f", "g", "ans2", "h", "j", "k", "ans3", "l", "m", "n", "p", "q", "ans4"], "preamble": {"css": "", "js": ""}, "name": "Solving linear equations: collecting like terms and solving", "advice": "\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{a}x+\\var{b}$$=$$\\var{c}x$ 
 
$\\var{a}x+\\var{b}-\\var{a}x$$=$$\\var{c}x-\\var{a}x$
 
$\\var{b}$$=$$\\var{c-a}x$
 
$\\displaystyle{\\frac{\\var{b}}{\\var{c-a}}}$ $=$$\\displaystyle{\\frac{\\var{c-a}x}{\\var{c-a}}}$
 
$\\displaystyle{\\simplify{{b}/{c-a}}}$$=$$x$
 
$x$$=$$\\displaystyle{\\simplify{{b}/{c-a}}}$
", "rulesets": {}, "variablesTest": {"maxRuns": "100", "condition": ""}, "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}, {"name": "heike hoffmann", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2960/"}, {"name": "sean hunte", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3167/"}, {"name": "Ruth Hand", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3228/"}]}