fractions add/sub fix
This commit is contained in:
@@ -93,7 +93,7 @@ export function generateRatioWordProblem(difficulty: Difficulty): MathProblem {
|
||||
|
||||
return {
|
||||
id: nextId(),
|
||||
prompt: `\\text{${ctx.item.charAt(0).toUpperCase() + ctx.item.slice(1)} were shared between ${ctx.nameA} and ${ctx.nameB} in the ratio ${a}:${b}. If ${bigger} received ${extraAmount} more ${ctx.item}, find the total shared.}`,
|
||||
prompt: `\\begin{array}{l}\\text{${ctx.item.charAt(0).toUpperCase() + ctx.item.slice(1)} were shared between ${ctx.nameA} and ${ctx.nameB}}\\\\\\text{in the ratio ${a}:${b}. If ${bigger} received ${extraAmount} more ${ctx.item}, find the total shared.}\\end{array}`,
|
||||
answer: { kind: "integer", value: total },
|
||||
hints: [
|
||||
`The difference in ratio parts is ${biggerRatio} - ${smallerRatio} = ${diff}`,
|
||||
|
||||
Reference in New Issue
Block a user