Skip to content

An AI skill that turns books into animated, narrated, interactive web experiences

18.7 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>Fraction Basics — Elementary Mathematics</title>
<link rel="stylesheet" href="../lib/engine.css"><link rel="expect" href="#bar" blocking="render">
<style>.screen .blanks .line{gap:14px}.screen input.box{min-width:110px}</style>
</head><body>
<script src="../lib/engine.js"></script><script src="audio/en/timings.js"></script><script>
'use strict';
const CHAPTER = { number: 6, title: 'Fraction Basics: Types of Fractions and Adding and Subtracting Fractions', minutes: 13, language: 'en', next: '../ch07/' };
const FB_A=COL.whole,FB_B=COL.nat;
const fbText=(p,s,x,y,t=0,size=32,col=COL.chalk,anchor='start')=>{const e=T(p,s,{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
const fbMath=(p,s,x,y,t=0,size=48,col=COL.chalk,anchor='middle')=>{const e=M(p,Array.isArray(s)?s:[s],{x,y,size,fill:col,anchor,o:0});show(e,t);return e;};
function fbTitle(p,s,sub=''){fbText(p,s,100,118,.1,43);if(sub)fbText(p,sub,100,171,.2,27,COL.dim);}
// A fixed outline is ONE whole. Its colored cells have exact widths w/d.
function fbBar(p,x,y,w,d,n,col=FB_A,t=.2,h=90,{cuts=true,uneven=null}={}){
 const g=G(p,{x,y,o:0}),filled=[],lines=[];mk('rect',{x:0,y:0,width:w,height:h,fill:COL.faint,'fill-opacity':.14},g);
 const edges=uneven||Array.from({length:d+1},(_,i)=>i*w/d);
 for(let i=0;i<n;i++){const e=G(g,{x:edges[i],y:0});mk('rect',{width:edges[i+1]-edges[i],height:h,fill:col,'fill-opacity':.65},e);filled.push(e);}
 for(let i=1;i<d;i++){const e=path(g,`M${edges[i]} 0V${h}`,{stroke:COL.chalk,'stroke-width':2});if(!cuts){put(e,{o:0});}lines.push(e);}
 mk('rect',{x:0,y:0,width:w,height:h,fill:'none',stroke:COL.chalk,'stroke-width':3},g);show(g,t);return {g,filled,lines,x,y,w,d,h};
}
function fbCuts(b,d,t,col=COL.task){for(let i=1;i<d;i++)draw(path(b.g,`M${i*b.w/d} 0V${b.h}`,{stroke:col,'stroke-width':2,'stroke-dasharray':'6 5'},{d:0}),t+i*.025,.7);}
function fbPieces(p,n,d,x,y,w,col,t=.2,h=90){return Array.from({length:n},(_,i)=>{const e=G(p,{x:x+i*w/d,y,o:0});mk('rect',{width:w/d,height:h,fill:col,'fill-opacity':.7,stroke:COL.chalk,'stroke-width':2},e);show(e,t+i*.05);return e;});}
function fbMove(es,x,y,w,d,t,offset=0){es.forEach((e,i)=>tw(e,{x:x+(i+offset)*w/d,y},t+i*.06,1.2,io));}
function fbMixed(p,x,y,whole,n,d,w=270,t=.2){const g=G(p);for(let i=0;i<3;i++){const count=i<whole?d:i===whole?n:0;fbBar(g,x,y+i*105,w,d,count,FB_A,t,72);}return g;}
function fbCandidates(p,data,y=305){return data.map((v,i)=>{const x=155+i*470,g=G(p);fbBar(g,x,y,350,v.d,v.n,FB_A,.2,110,{uneven:v.uneven});fbText(g,v.label,x+175,y+175,.3,35,COL.chalk,'middle');return {el:g,box:[x-15,y-15,380,215],label:v.label};});}
const BEATS=[
['intro','Fraction basics',(m,D)=>{const g=G(scene,{o:0,y:24});T(g,'Unit 1 · The Number System · Chapter 6',{x:800,y:235,size:28,fill:COL.dim,anchor:'middle'});T(g,'Fraction Basics',{x:800,y:345,size:82,weight:600,anchor:'middle'});T(g,'Types · Adding · Subtracting',{x:800,y:435,size:49,anchor:'middle'});tw(g,{o:1,y:0},.2,1,out);const b=fbBar(g,560,490,480,3,2,FB_A,.5,90,{cuts:false});b.lines.forEach(e=>show(e,m('sub')));const s=fbText(scene,'Make the equal pieces explain the numbers.',800,720,m('sub'),34,COL.dim,'middle');hide(g,D-.8,.7);hide(s,D-.8,.7);}],
['parts','Pieces of ONE whole',m=>{const p=panel(0);fbTitle(p,'Count equal pieces of one whole','The outline always means one whole strip.');const b=fbBar(p,200,300,840,6,0,FB_A,.2,140,{cuts:false});b.lines.forEach(e=>show(e,m('split')));const color=fbPieces(p,4,6,200,300,840,FB_A,m('count'),140);fbText(p,'one whole → 6 equal pieces',620,520,m('split'),34,COL.dim,'middle');fbMath(p,[F('4','6')],1210,375,m('count'),85,FB_A);fbText(p,'4 = numerator',1100,515,m('names'),32,FB_A);fbText(p,'pieces we have',1100,557,m('names',1),28,COL.dim);fbText(p,'6 = denominator',1100,645,m('names',2),32,COL.task);fbText(p,'equal pieces in ONE whole',1100,687,m('names',3),25,COL.dim);fbText(p,'The unit whole and the equal piece size matter.',800,810,m('names',6),32,COL.dim,'middle');}],
['equal','Equal pieces matter',m=>{const p=panel(0);fbTitle(p,'Three pieces does not always mean thirds');const a=fbBar(p,350,270,900,3,2,FB_A,.2,120,{uneven:[0,150,300,900]});fbText(p,'Unequal pieces: do not count these as thirds',800,445,m('uneven'),32,COL.task,'middle');const b=fbBar(p,350,540,900,3,2,FB_A,m('equal'),120);fbText(p,'Equal pieces → two thirds =',985,735,m('equal',3),34,FB_A,'end');fbMath(p,[F('2','3')],1018,740,m('equal',3),60,FB_A);fbText(p,'One whole? Equal pieces?',800,842,m('one'),37,COL.task,'middle');}],
['remainder','What is left over?',m=>{const p=panel(0);fbTitle(p,'Share 11 snack bars among 3 friends');const sub=fbText(p,'First share whole bars equally.',100,171,.2,27,COL.dim);hide(sub,m('fraction'),.4);fbText(p,'Split both leftover bars into thirds.',100,171,m('fraction',.4),27,COL.dim);const BW=72,BH=44,fx=j=>350+j*450;const es=Array.from({length:11},(_,i)=>{const e=G(p,{x:300+i*100,y:255,o:0});mk('rect',{x:-BW/2,y:-BH/2,width:BW,height:BH,rx:5,fill:FB_A},e);show(e,.2+i*.04);return e;});for(let j=0;j<3;j++){const x=fx(j);fbText(p,['Ana','Bo','Cai'][j],x,550,m('share'),33,COL.dim,'middle');draw(path(p,`M${x-180} 330h360v170h-360Z`,{stroke:COL.dim,'stroke-width':2},{d:0}),m('share'),.5);}for(let i=0;i<9;i++){const r=Math.floor(i/3);tw(es[i],{x:fx(i%3)+(r-1)*100,y:380},m('share',.5+r*.9),.8,io);}[9,10].forEach((i,k)=>tw(es[i],{x:750+k*100,y:610},m('left'),1,io));const rlab=fbText(p,'2 left over = remainder 2',800,690,m('left',1),35,COL.task,'middle');hide(rlab,m('fraction'),.5);fbMath(p,'Whole bars only: 11 ÷ 3 = 3 R 2',800,800,m('left',1.6),42);[9,10].forEach((idx,k)=>{[-BW/6,BW/6].forEach(xx=>draw(path(es[idx],`M${xx} ${-BH/2}V${BH/2}`,{stroke:COL.chalk,'stroke-width':2},{d:0}),m('fraction'),.7));hide(es[idx],m('fraction',1.2),.1);for(let j=0;j<3;j++){const e=G(p,{x:750+k*100-BW/2+j*BW/3,y:610-BH/2,o:0});mk('rect',{width:BW/3,height:BH,fill:FB_A,stroke:COL.chalk,'stroke-width':1.5},e);show(e,m('fraction',1.2));tw(e,{x:fx(j)-BW/3+k*BW/3,y:440},m('fraction',1.5),1.3,io);}});fbMath(p,['Each share: 3 + ',F('2','3'),' snack bars'],800,690,m('fraction',3.5),52,FB_A);}],
['q1','Quick check',()=>{const p=panel(0);fbTitle(p,'Which picture really shows two thirds?','Each outline is one whole strip.');S.fbEq=fbCandidates(p,[{d:3,n:2,uneven:[0,70,140,350],label:'A'},{d:3,n:2,label:'B'},{d:3,n:1,label:'C'}]);},{ask:done=>quiz(BAND,[{id:'c-equal',prompt:'Choose the picture with TWO of THREE equal pieces filled.',build:pickEls(S.fbEq,1,'B shows two equal thirds. The denominator counts three equal pieces in ONE whole.',i=>i===0?'A has unequal pieces. Counting two of them does not make two thirds.':'C has only one of its three equal pieces filled.',()=>pulseFx(S.fbEq[1].el,1.08))}],done)}],
['types','Three ways to describe fractions',m=>{const p=panel(0);fbTitle(p,'Compare each amount with one whole');const xs=[160,650,1140];fbBar(p,xs[0],260,300,4,3,FB_A,.2);fbBar(p,xs[1],260,300,4,4,FB_A,.2);fbBar(p,xs[1],370,300,4,1,FB_A,m('improper'));fbBar(p,xs[2],260,300,4,4,FB_A,.2);fbBar(p,xs[2],370,300,4,1,FB_A,m('mixed'));[['proper','Proper',[F('3','4')],'3 < 4 → less than 1'],['improper','Improper',[F('5','4')],'5 ≥ 4 → at least 1'],['mixed','Mixed',['1 ',F('1','4')],'whole + proper part']].forEach(([k,s,v,n],i)=>{fbText(p,s,xs[i]+150,560,m(k),40,COL.task,'middle');fbMath(p,v,xs[i]+150,670,m(k),66);fbText(p,n,xs[i]+150,780,m(k,1),30,COL.dim,'middle');});}],
['mixed','Mixed → improper',m=>{const p=panel(0);fbTitle(p,'Two and one fourth: count all the quarters');[200,660].forEach(x=>{const b=fbBar(p,x,320,360,4,4,FB_A,.2,120,{cuts:false});b.lines.forEach(e=>show(e,m('split')));});fbBar(p,1120,320,360,4,1,FB_A,.2,120);fbText(p,'4 quarters',380,520,m('count'),33,FB_A,'middle');fbText(p,'4 quarters',840,520,m('count',1),33,FB_A,'middle');fbText(p,'1 quarter',1300,520,m('count',2),33,FB_A,'middle');fbMath(p,['2 ',F('1','4'),' = ',F('2 × 4 + 1','4'),' = ',F('9','4')],800,660,m('count',3),60);fbText(p,'Whole count × denominator + numerator',800,780,m('rule'),35,COL.task,'middle');fbText(p,'Keep the denominator: the pieces are still quarters.',800,835,m('rule',3),28,COL.dim,'middle');}],
['improper','Improper → mixed',m=>{const p=panel(0);fbTitle(p,'Nine quarters regroup into whole strips');const w=360,es=fbPieces(p,9,4,250,265,360,FB_A,.2,100);[200,660,1120].forEach(x=>fbBar(p,x,460,w,4,0,FB_A,.2,100));es.slice(0,4).forEach((e,i)=>tw(e,{x:200+i*90,y:460},m('groups'),1.2,io));es.slice(4,8).forEach((e,i)=>tw(e,{x:660+i*90,y:460},m('groups',2),1.2,io));tw(es[8],{x:1120,y:460},m('left'),1.2,io);fbMath(p,'9 ÷ 4 = 2 R 1',800,660,m('left',1),48);fbMath(p,[F('9','4'),' = 2 ',F('1','4')],800,760,m('name'),58,FB_A);fbText(p,'Both forms are correct. Follow a requested form.',800,840,m('name',5),30,COL.dim,'middle');}],
['q2','Quick check',()=>{const p=panel(0);fbTitle(p,'Which mixed-number picture equals nine fourths?','All outlines represent the same size whole.');S.fbMixed=[[2,1],[1,3],[2,3]].map(([a,b],i)=>{const x=185+i*470,g=fbMixed(p,x,260,a,b,4);fbMath(g,[String(a)+' ',F(String(b),'4')],x+135,640,.3,52);return {el:g,box:[x-15,240,300,455],label:`${a} and ${b} fourths`};});},{ask:done=>quiz(BAND,[{id:'c-mixed',prompt:['Choose the area matching ',$m(F('9','4')),'.'],build:pickEls(S.fbMixed,0,'Two wholes use eight quarters; one more quarter makes nine fourths.',i=>i===1?'One whole and three quarters is seven fourths. Count every filled quarter.':'Two wholes and three quarters is eleven fourths, not nine.',()=>pulseFx(S.fbMixed[0].el,1.04))}],done)}],
['simplify','Same amount, fewer pieces',m=>{const p=panel(0);fbTitle(p,'Simplify by grouping equal pieces','The colored area stays exactly the same.');const b=fbBar(p,200,310,1080,12,9,FB_A,.2,150);b.lines.forEach((e,i)=>{if((i+1)%3!==0)hide(e,m('group'),1);else tw(e,{'a_stroke-width':5},m('group'),1);});fbMath(p,[F('9','12'),' = ',F('9 ÷ 3','12 ÷ 3'),' = ',F('3','4')],800,620,m('both'),60);fbText(p,'GCF(9, 12) = 3',800,745,m('gcf'),38,COL.task,'middle');fbText(p,'Divide BOTH counts by the same common factor.',800,820,m('gcf',2),30,COL.dim,'middle');}],
['likeadd','Add same-size pieces',m=>{const p=panel(0);fbTitle(p,'Two sevenths + three sevenths','The two source wholes and the result whole have identical sizes.');const w=840,x=250;fbBar(p,x,235,w,7,0,FB_A,.2,85);fbBar(p,x,380,w,7,0,FB_A,.2,85);fbBar(p,x,590,w,7,0,FB_A,.2,85);const a=fbPieces(p,2,7,x,235,w,FB_A),b=fbPieces(p,3,7,x,380,w,FB_B);const la=fbMath(p,[F('2','7')],1260,292,.2,52,FB_A),lb=fbMath(p,[F('3','7')],1260,438,.2,52,FB_B);hide(la,m('move',1),.4);hide(lb,m('move',2.3),.4);fbMove(a,x,590,w,7,m('move'));fbMove(b,x,590,w,7,m('move',1.3),2);fbMath(p,[F('2','7'),' + ',F('3','7'),' = ',F('5','7')],800,770,m('count'),54);fbText(p,'Keep 7: each piece is still one seventh.',800,840,m('denom'),29,COL.task,'middle');}],
['likesub','Subtract same-size pieces',m=>{const p=panel(0);fbTitle(p,'Six sevenths − two sevenths');const w=1050,x=200;fbBar(p,x,330,w,7,0,FB_A,.2,140);const es=fbPieces(p,6,7,x,330,w,FB_A,.2,140);es.slice(4).forEach((e,i)=>{tw(e,{y:555,x:900+i*160},m('remove'),1.2,io);hide(e,m('remove',2),.8);});fbMath(p,[F('6','7'),' − ',F('2','7'),' = ',F('4','7')],800,670,m('left'),64);fbText(p,'Remove pieces. Keep their size.',800,785,m('denom'),37,COL.task,'middle');}],
['unlike','Different piece sizes',m=>{const p=panel(0);fbTitle(p,'One half + one third','One whole strip has the same width in both rows.');fbBar(p,200,280,840,2,1,FB_A,.2,120);fbBar(p,200,480,840,3,1,FB_B,.2,120);fbMath(p,[F('1','2')],1190,350,.2,65,FB_A);fbMath(p,[F('1','3')],1190,555,.2,65,FB_B);fbText(p,'Different denominators → different piece sizes',800,690,m('sizes'),32,COL.task,'middle');const wrong=fbMath(p,[F('1+1','2+3'),' = ',F('2','5')],800,790,m('mistake'),52,COL.dim);draw(path(p,'M600 755L1000 812',{stroke:COL.bad,'stroke-width':4},{d:0}),m('mistake',1),.4);fbText(p,'Rename both with a common piece size.',800,850,m('common'),29,COL.task,'middle');}],
['rename','Rename without changing area',m=>{const p=panel(0);fbTitle(p,'LCM(2, 3) = 6 → sixth-sized pieces','The outline and colored areas stay fixed.');const a=fbBar(p,200,290,700,2,1,FB_A,.2,120),b=fbBar(p,200,520,700,3,1,FB_B,.2,120);fbCuts(a,6,m('split'));fbCuts(b,6,m('split'));fbMath(p,[F('1','2'),' = ',F('1 × 3','2 × 3'),' = ',F('3','6')],1195,385,m('half'),42,FB_A);fbMath(p,[F('1','3'),' = ',F('1 × 2','3 × 2'),' = ',F('2','6')],1195,610,m('third'),42,FB_B);fbText(p,'Same area. More, smaller pieces.',800,765,m('why'),38,COL.task,'middle');fbText(p,'Multiply numerator AND denominator by the same factor.',800,830,m('why',2),29,COL.dim,'middle');}],
['unlikeadd','Now combine the sixths',m=>{const p=panel(0);fbTitle(p,'Matching pieces can be counted together');const w=840,x=250;[235,380,590].forEach(y=>fbBar(p,x,y,w,6,0,FB_A,.2,85));const a=fbPieces(p,3,6,x,235,w,FB_A),b=fbPieces(p,2,6,x,380,w,FB_B);const la=fbMath(p,[F('3','6')],1260,295,.2,52,FB_A),lb=fbMath(p,[F('2','6')],1260,440,.2,52,FB_B);hide(la,m('move',1),.4);hide(lb,m('move',2.3),.4);fbMove(a,x,590,w,6,m('move'));fbMove(b,x,590,w,6,m('move',1.3),3);fbMath(p,[F('1','2'),' + ',F('1','3'),' = ',F('3','6'),' + ',F('2','6'),' = ',F('5','6')],800,780,m('answer'),49);fbText(p,'LCM keeps the common denominator as small as possible.',800,844,m('lcm'),28,COL.dim,'middle');}],
['q3','Quick check',()=>{const p=panel(0);fbTitle(p,'Choose the area for one half + one third','Same whole size. Rename both amounts as sixths.');S.fbSum=fbCandidates(p,[{d:6,n:3,label:'A'},{d:6,n:5,label:'B'},{d:5,n:2,label:'C'}]);},{ask:done=>quiz(BAND,[{id:'c-sum',prompt:'Which result combines THREE sixths with TWO sixths?',build:pickEls(S.fbSum,1,'B: three sixths plus two sixths fills five sixths of one whole.',i=>i===0?'A only shows the original half. The two sixths from one third must be added too.':'C adds denominators and changes the piece size. Two fifths is even smaller than one half.',()=>pulseFx(S.fbSum[1].el,1.08))}],done)}],
['unlikesub','Rename, then remove',m=>{const p=panel(0);fbTitle(p,'Three fourths − one sixth');const x=200,w=1050,a=fbBar(p,x,260,w,4,3,FB_A,.2,105),b=fbBar(p,x,475,w,6,1,FB_B,.2,105);fbText(p,'LCM(4, 6) = 12',800,220,m('lcm'),33,COL.task,'middle');fbCuts(a,12,m('rename'));fbCuts(b,12,m('rename'));const before=fbMath(p,[F('3','4'),' = ',F('9','12')],1360,330,m('rename'),45,FB_A);hide(before,m('remove',1),.4);fbMath(p,[F('7','12')],1360,330,m('answer'),48,FB_A);fbMath(p,[F('1','6'),' = ',F('2','12')],1360,545,m('rename',2),45,FB_B);a.filled.forEach(e=>hide(e,m('rename'),.1));const es=fbPieces(p,9,12,x,260,w,FB_A,m('rename'),105);es.slice(7).forEach(e=>{tw(e,{y:390},m('remove'),1.1,io);hide(e,m('remove',1.5),.8);});fbMath(p,[F('9','12'),' − ',F('2','12'),' = ',F('7','12')],800,720,m('answer'),59);fbText(p,'Seven twelfths remain. Already in lowest terms.',800,815,m('answer',2),31,COL.task,'middle');}],
['wrap','Summary',m=>{const p=panel(0);fbTitle(p,'Four ideas to keep');[['Count equal pieces of ONE whole.','w1'],['Changing the form keeps the same amount.','w2'],['Simplify: divide both numbers by their GCF.','w3'],['Match piece sizes, then add or subtract.','w4']].forEach(([s,k],i)=>{const g=G(p,{x:180,y:290+i*145,o:0});mk('circle',{cx:155,cy:-12,r:26,fill:COL.task},g);T(g,String(i+1),{x:155,y:-1,size:30,fill:COL.board,anchor:'middle',weight:700});T(g,s,{x:215,size:42,weight:600});tw(g,{x:200,o:1},m(k),.6);});}],
['final1','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[
{id:'p-proper',prompt:['Classify ',$m(F('7','10')),'.'],build:choice(['Proper fraction','Improper fraction','Mixed number'],0,'7 is smaller than 10; seven tenths is less than one whole.',['','An improper fraction has a numerator at least as big as its denominator.','This is one fraction, with no separate whole-number part.'])},
{id:'p-improper',prompt:['Classify ',$m(F('12','7')),'.'],build:choice(['Proper fraction','Improper fraction','Mixed number'],1,'12 is greater than 7, so twelve sevenths is improper.',['12 is not smaller than 7.','','A mixed number writes a whole number and a proper fractional part.'])},
{id:'p-mixed',prompt:['Classify ',$m('3 ',F('2','5')),'.'],build:choice(['Proper fraction','Improper fraction','Mixed number'],2,'This notation combines three wholes with two fifths.',['The complete written number has a whole part.','An improper fraction is written as a single fraction.',''])}
],done,'Chapter practice · set 1 of 4')}],
['final2','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-rename',prompt:'Convert and simplify.',build:blanks([
{parts:['Improper: 1 ',F('3','5'),' = ',{box:'8'},' / ',{box:'5'}],why:'One whole has five fifths; five plus three makes eight fifths.',hint:'Fill the numerator and denominator of a single fraction.'},
{parts:['Mixed: ',F('17','6'),' = ',{box:'2'},' + ',{box:'5/6',lowest:true}],why:'Seventeen sixths make two whole groups of six, with five sixths left.',hint:'Fill the whole count and then the proper fractional part.'},
{parts:['Lowest terms: ',F('14','21'),' = ',{box:'2/3',lowest:true}],why:'GCF(14,21)=7. Divide both counts by seven to get two thirds.'},
{parts:['13 whole bars in 4 equal groups: remainder ',{box:'1'}],why:'13 = 4 × 3 + 1. Each group gets three whole bars; one remains.'}
])}],done,'Chapter practice · set 2 of 4')}],
['final3','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[{id:'p-calculate',prompt:'Calculate in lowest terms. Equivalent mixed numbers are accepted.',build:blanks([
{parts:[F('3','11'),' + ',F('5','11'),' = ',{box:'8/11',lowest:true}],why:'Add the numerators: three plus five is eight. Keep eleven.'},
{parts:[F('11','12'),' − ',F('5','12'),' = ',{box:'1/2',lowest:true}],why:'Six twelfths remain; divide both counts by six to get one half.'},
{parts:[F('2','3'),' + ',F('3','4'),' = ',{box:'17/12',lowest:true}],why:'LCM(3,4)=12. Eight twelfths plus nine twelfths is seventeen twelfths, or one and five twelfths.'},
{parts:[F('7','8'),' − ',F('1','3'),' = ',{box:'13/24',lowest:true}],why:'LCM(8,3)=24. Twenty-one twenty-fourths minus eight twenty-fourths is thirteen twenty-fourths.'}
])}],done,'Chapter practice · set 3 of 4')}],
['final4','Chapter practice',()=>panel(0),{ask:done=>quiz(SCREEN,[
{id:'p-ribbon',prompt:['Mina joins a ',$m(F('1','4')),' meter ribbon with a ',$m(F('3','8')),' meter ribbon. How long is the joined ribbon?'],build:blanks([{parts:[{box:'5/8',lowest:true},' meter'],why:'One meter is the unit whole. One fourth meter is two eighths; add three eighths to get five eighths meter.'}])},
{id:'p-paint',prompt:['A jar holds ',$m(F('5','6')),' liter of paint. Sam uses ',$m(F('1','4')),' liter. How much paint remains?'],build:blanks([{parts:[{box:'7/12',lowest:true},' liter'],why:'One liter is the unit whole. Ten twelfths minus three twelfths leaves seven twelfths liter.'}])}
],done,'Chapter practice · set 4 of 4')}],
['finish','Finished',()=>panel(0),{ask:finishCard}]
].map(([id,title,run,extra])=>({id,title,run,...extra}));
boot();
</script></body></html>