// Numbas version: exam_results_page_options {"name": "Solve a linear equation $ax+b = c$", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"metadata": {"description": "
Solve a linear equation of the form $ax+b = c$, where $a$, $b$ and $c$ are integers.
\nThe answer is always an integer.
", "licence": "Creative Commons Attribution 4.0 International"}, "ungrouped_variables": [], "type": "question", "rulesets": {}, "advice": "We need to solve the equation
\n\\[ \\var{a}x+\\var{b}=\\var{c} \\]
\nTo solve this equation, we must rearrange the equation to put $x$ on its own.
\nTo do this, we should subtract $\\var{b}$ from both sides and then divide through by $\\var{a}$ to get the value for $x$.
\n\\begin{align}
\\var{a}x+\\var{b}&=\\var{c} \\\\[0.5em]
\\var{a}x&=\\var{c}-\\var{b} & \\text{Subtract } \\var{b} \\text{ from both sides} \\\\[0.5em]
\\var{a}x&=\\var{c-b} \\\\[0.5em]
x&=\\frac{\\var{c-b}}{\\var{a}} & \\text{Divide both sides by } \\var{a} \\\\[0.5em]
x&=\\simplify{{c-b}/{a}}
\\end{align}
$\\var{a}x+\\var{b}=\\var{c}$
\nWhat is the value of $x$?
\n$x = $ [[0]]
", "variableReplacements": [], "showFeedbackIcon": true, "marks": 0, "gaps": [{"correctAnswerFraction": false, "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "showFeedbackIcon": true, "allowFractions": false, "minValue": "x", "scripts": {}, "variableReplacementStrategy": "originalfirst", "type": "numberentry", "maxValue": "x", "mustBeReduced": false, "marks": "2", "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReducedPC": 0}]}], "tags": ["linear equation", "linear equations", "Linear equations", "solving linear equations", "taxonomy"], "preamble": {"js": "", "css": ""}, "variable_groups": [{"name": "part a", "variables": ["a", "b", "c", "x"]}], "functions": {}, "extensions": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}]}