Ray's New Intellectual Arithmetic as a game (Ray's Arithmetic Book 2 rebuild guide) 11OCT2026

Book 2 of Ray's, Grades 3-4: all 80 lessons of mental arithmetic, from adding to fractions, ratio and percentage, read aloud in the same Eloquence voice

Posted by on 11th Oct 2026

Book 2 of the Ray's Arithmetic shelf is now playable: Ray's New Intellectual Arithmetic (Grades 3-4). This is the "mental arithmetic" book: every question is meant to be worked in the head and answered out loud. It runs in the same app as Book One at https://abcbooks.fyi/rays/ , with the same "Reed" voice. This post covers what is new for Book 2 and how to rebuild it. The app itself, the server and the voice recorder are explained in the Book One post. Every block has a Copy button.

What is in Book 2

80 lessons, 1,853 questions and 3,551 answers, all from the book:

  • Lessons 1-19: adding, taking away, times and dividing, with the book's tables (now written "2 + 1 = 3", "3 x 4 = 12") and long chains of story problems.
  • Lessons 20-44: fractions. Halves, thirds and so on of a number; "8 are 2 thirds of what number?"; adding, taking away, multiplying and dividing fractions and mixed numbers.
  • Lessons 45-59: the tables of money, weights and measures, and reviews. A measure answer is asked one unit at a time ("Pecks? 1. Quarts? 5.").
  • Lessons 60-63: ratio and proportion.
  • Lessons 64-79: percentage, gain and loss, interest, discount and present worth.
  • Lesson 80: the 61 "Problems" at the end: hounds chasing hares, laborers who forfeit a dollar a day, men and boys doing a piece of work.

New kinds of answers

Book 2's answers are often not whole numbers, so the app learned some new tricks:

  • Fractions and mixed numbers. When an answer is a fraction, the number pad grows a row with /, and and . keys. "2 and 1/2", "5/2" and "2.5" all count as right, because the app compares values. Some questions want an answer written a certain way ("3/6 in its lowest terms"), and then only that form counts.
  • Money in dollars and cents, typed with the . key ("6.75").
  • Two or three answers to one question ("Present worth? Discount?" or "A? B? C?"), asked one after another.
  • Answer out loud. Some questions have no single number to type ("Give two numbers which, added together, make 10"). These show a Next โ–ถ button instead: say it to a grown-up, then tap Next.
  • The voice says fractions the way the book does: "3 fourths", "2 and 1 half".

The ๐ŸŽค button works here too, for whole-number answers.

How the book was typed up

The free PDF of this book (from raysarithmetic.wordpress.com, with a separate answer key) is only pictures of pages, with no text in it. So each page was:

  1. Read with Windows' own text recognition (ocr-pdf.ps1), which gets the words right but mangles the small printed fractions.
  2. Zoomed (zoom-page.ps1) and read by eye wherever a fraction or table was printed small.
  3. Typed into intellectual.txt, with every answer worked out exactly and checked against the answer key.

The source format is the same as Book One's, with some additions:

== 76 | Percentage | Finding the time
q: In what time, at 8 per cent, will $75 give $15 interest? Years? {~5/2}
q: Give two numbers which, added together, make 10. {open}
q: What is the interest of $60 for 2 yr. 3 mo., at 5 per cent? {6.75}
  • {~5/2} is worked out by the build with exact fractions. It understands mixed numbers written 2_1/2 and division written with spaces (12 / 3).
  • {=1/2} means "must be written exactly like this"; {=3/6|1/2} allows two forms.
  • {100|1} accepts either answer (used where the book's wording could be read two ways).
  • {open} is an answer-out-loud question.
  • table: +add 2 12 makes Book 2's tables ("2 + 1 = 3" style, up to 12); +sub, +mul and +div work the same way, and several can be joined with |.

The build still checks every plain-arithmetic answer and refuses to build if one is wrong.

A few answers worth knowing about:

  • Lesson 80, problem 26 (the $50 note sold 2 years early) can be read two ways, and the old answer key's working is unclear, so both 6 and 9 per cent count as right.
  • Lesson 80, problem 53 ("what 12 boys are a week in doing") counts a week as 6 working days, like the answer key: 12 men.
  • Lesson 78, problems 11 and 12 come out as large mixed numbers ($196 196/249 and $162 18/61), exactly as the answer key has them.

The voice

The same recorder as Book One: 4,919 clips at each speed (normal and faster), about 10 minutes on this PC. Clips with the same words are shared between books, so "The answer is 12." is recorded only once.

Files

The app, server scripts and recorder are in the Book One post; set those up first. Book 2 adds the files below. Each block writes one file into /root/rays-rebuild/ when pasted into a Proxmox host shell (Proxmox web UI, pve, Shell). Then copy that folder to the PC (as in the Book One post) and put:

  • intellectual.txt in C:\RaysArithmetic\source\
  • make-book.ps1, make-audio.ps1, ocr-pdf.ps1, zoom-page.ps1, units.ps1 in C:\RaysArithmetic\tools\
  • app.js, index.html, sw.js in C:\RaysArithmetic\public\ (these replace the Book One versions; they run both books)

Proxmox host shell:

mkdir -p /root/rays-rebuild

intellectual.txt: the whole of Book 2 with the answers.

cat > /root/rays-rebuild/intellectual.txt <<'EOF'
@book: intellectual | Ray's New Intellectual Arithmetic | 1877 - Book Two | #6a4c93
# Ray's New Intellectual Arithmetic (1877), typed from the clean scan source/pdf/rays-intellectual-arithmetic-3-4.pdf
# (book page N = PDF page N), answers checked against the Key (rays-intellectual-arithmetic-3-4-answer-key.pdf).
# Same format as primary.txt. Extra answer forms: {3/4}, {2 1/2}, {1.25} (fractions, mixed numbers, decimals);
# {open} = answered out loud to a grown-up (the book asks for any example, like "Give two numbers which make 10").

== 1 | Addition | Adding small numbers
q: James had 1 apple, and his brother gave him 1 more: how many had he then? {2}
sol: Why? Because 1 and 1 are 2.
q: Henry had 2 cents, and his sister gave him 1 cent more: how many had he in all? {3}
sol: Why? Because 2 and 1 are 3.
q: A boy had 1 marble, and found 3 marbles more: how many did he then have? {4}
sol: Why? Because 1 and 3 are 4.
q: Thomas had 4 cents, and his mother gave him 1 cent more: how much had Thomas altogether? {5}
q: Samuel had 2 cakes, and his father gave him 2 more: how many did he then have? {4}
q: How many are 3 oranges and 2 oranges? {5}
q: James had 3 apples, and his brother gave him 3 more: how many apples had James then? {6}
q: John had 4 plums, and his sister gave him 2 more: how many did he then have? {6}
q: Daniel had 3 cents; his brother gave him 2 cents, and his sister 1 cent: how many did he then have? {6}
q: Mary had 4 pears, and her brother gave her 3 more: how many did she then have? {7}
q: How many fingers have you on one hand? {5} How many on both hands? {10}
q: Ida had 4 cents; her mother gave her 3 cents more at one time, and 1 cent at another: how many cents had she altogether? {8}
q: Three cakes and 3 cakes and 2 cakes are how many cakes? {8}
q: Four cents and 3 cents and 2 cents are how many cents? {9}
q: Five oranges and 2 oranges and 1 orange are how many oranges? {8}
q: Henry had 5 cents, and his mother gave him 2 more at one time, and 3 at another: how many did he then have? {10}
q: Five boys and 4 boys and 1 boy are how many boys? {10}
q: Oliver has 5 dollars; Henry, 3 dollars; and Samuel, 1 dollar: how many dollars have all together? {9}
sol: All together have the sum of 5 dollars, 3 dollars, and 1 dollar, which is 9 dollars.
q: Three peaches and 6 peaches and 1 peach are how many peaches? {10}
q: A lady paid 1 dollar for gloves, 3 dollars for a shawl, and 3 dollars for a dress: how much did she spend? {7}
q: Four cents and 3 cents and 3 cents and 1 cent are how many cents? {11}
q: If a man buy 6 pounds of sugar at one time, 2 at another, and 2 at another, how much does he buy? {10}
q: Seven oranges and 1 orange and 2 oranges are how many? {10}
q: George has 3 cents, his sister 2 cents, and his brother 2 cents: if all the money were given to George, how much would he have? {7}
q: How many are 4 and 4 and 2? {10}
sol: As many as the sum of 4, 4, and 2, which is 10.
q: James has 4 cents, Joseph 2, and John 2: how many cents have they all? {8}
note: Addition is the process of uniting two or more numbers. The result is called the sum, or amount. The sign of addition (+) is called plus. The sign of equality (=) is read equals, or is equal to.

== 2 | Addition | Adding three numbers
q: One and 1 are how many? {?} 1 and 2? {?} 3 and 1? {?} 4 and 1? {?} 1 and 3? {?} 1 and 5? {?} 1 and 6? {?} 6 and 1? {?} 1 and 7? {?} 8 and 1? {?} 9 and 1? {?} 1 and 8? {?}
sol: One and one are two.
q: Two and 4 and 1 are how many? {?} 6 and 2 and 3? {?} 4 and 1 and 4? {?}
sol: Two and four are six; six and one are seven.
q: Five and 2 are how many? {?} 7 and 3? {?} 2 and 6 and 1? {?} 2 and 1 and 2? {?} 3 and 5? {?} 5 and 4? {?}
q: Nine and 2 are how many? {?} 6 and 1 and 1? {?} 6 and 3? {?} 6 and 4? {?} 7 and 1 and 3? {?} 1 and 2 and 8? {?} 1 and 3 and 8? {?}
q: Eight and 2 are how many? {?} 8 and 3? {?} 10 and 2 and 1? {?} 1 and 4 and 6? {?} 8 and 4? {?} 7 and 4? {?} 6 and 7? {?} 7 and 1 and 4? {?} 1 and 8 and 2 and 2? {?}
q: Ten and 2 are how many? {?} 9 and 3? {?} 9 and 1 and 2? {?} 9 and 1 and 3? {?} 5 and 6? {?} 1 and 4 and 8? {?} 2 and 4 and 6? {?} 3 and 4 and 5? {?} 4 and 7 and 2? {?} 5 and 4 and 8? {?}
q: How many are 1 and 9? {?} 10 and 3? {?} 4 and 9? {?} 7 and 1? {?} 5 and 7? {?} 9 and 4? {?} 2 and 12? {?} 3 and 11? {?}
q: Give two numbers which, added together, make 10. {open}
q: Begin at 4, and add 2 each time up to 16. {4..16 by 2}
q: Begin at 1, and add 3 each time up to 13. {1..13 by 3}
q: Mention two numbers which, added together, will make 12. {open} Three numbers? {open}
q: Seven and 5 and 2 are how many? {?}
q: Seven and 3 and 4 are how many? {?}
q: If 3 be added to 3, and that sum to 5, what will be the result? {11}
q: If you add 3 to the sum of 3 and 1, and then add 7 more, what will be the amount? {14}
q: I have in one basket 8 dozen eggs, in another 4 dozen, in another 3 dozen: how many dozen eggs in all? {15}
sol: I have in all 8 dozen and 4 dozen and 3 dozen eggs. 8 dozen and 4 dozen are 12 dozen; 12 dozen and 3 dozen are 15 dozen.
q: A little girl bought two yards of tape for 3 cents, some pins for 5 cents, and received 2 cents in change: how many cents had she at first? {10}
q: Two and 1 more, and 3 and 4 more, are together how many? {10}
q: One and 3 and 4 and 5 are how many? {?} 5 and 1 and 3 and 4? {?}
q: A boy bought 3 cents worth of marbles, and 2 cents worth of candy, and received 5 cents in change: how much money had he? {10}
q: I bought three hams for 8 dollars, and ten bushels of apples for 3 dollars: how much did I spend? {11}
q: Oliver has 4 cents in one hand, 3 in the other, and 4 in his pocket: how many cents has he? {11}
q: A lady made two coats from 8 yards of cloth, two vests from 2 yards, and two pairs of pants from 6 yards: how many yards of cloth did she use in all? {16}
q: A grocer sold a pound of rice for 5 cents, a paper of matches for 3 cents, and a box of mustard for 10 cents: how much did he receive for all? {18}
q: How many are 9 and 3 and 2? {?} 4 and 6 and 8? {?} 10 and 7 and 3? {?}
q: If I have 10 cents in one pocket, 5 cents in another, and 3 cents in each hand, how much have I altogether? {21}
sol: I have the sum of 10 cents, 5 cents, 3 cents, and 3 cents, which is 21 cents.

== 3 | Addition | The addition table
table: +add 2 12
table: +add 3 12
table: +add 4 12
table: +add 5 12
table: +add 6 12
table: +add 7 12
table: +add 8 12
table: +add 9 12
table: +add 10 12

== 4 | Addition | Adding to 22, and past the tens
q: Three and 8 are how many? {?} 6 and 9? {?}
q: Four and 4 are how many? {?} 4 and 11? {?} 4 and 10? {?} 4 and 12? {?}
q: Five and 9 are how many? {?} 5 and 12? {?} 5 and 10? {?} 5 and 8? {?} 5 and 11? {?} 6 and 6? {?} 6 and 8? {?}
q: Seven and 7 are how many? {?} 7 and 10? {?} 7 and 8? {?} 7 and 12? {?} 7 and 9? {?} 7 and 11? {?} 8 and 8? {?}
q: Nine and 11 are how many? {?} 9 and 9? {?} 9 and 12? {?} 9 and 10? {?} 9 and 8? {?}
q: Ten and 6 are how many? {?} 10 and 8? {?} 10 and 10? {?} 10 and 12? {?} 10 and 11? {?}
q: Eleven and 2 are how many? {?} 11 and 4? {?} 11 and 6? {?} 11 and 8? {?} 11 and 3? {?} 11 and 11? {?}
q: Twelve and 3 are how many? {?} 12 and 4? {?} 12 and 6? {?} 12 and 8? {?} 12 and 11? {?} 12 and 12? {?}
q: Thirteen and 4 are how many? {?} 13 and 6? {?} 13 and 5? {?} 13 and 7? {?} 13 and 9? {?} 13 and 10? {?} 13 and 8? {?} 13 and 11? {?} 13 and 12? {?}
q: Fourteen and four are how many? {?} 14 and 6? {?} 14 and 8? {?} 14 and 5? {?} 14 and 7? {?} 14 and 10? {?} 14 and 9? {?} 14 and 11? {?} 14 and 12? {?}
q: Fifteen and 5 are how many? {?} 15 and 7? {?} 15 and 9? {?} 15 and 4? {?} 15 and 8? {?} 15 and 10? {?} 15 and 12? {?} 15 and 11? {?}
q: Sixteen and 4 are how many? {?} 16 and 6? {?} 16 and 8? {?} 16 and 5? {?} 16 and 7? {?} 16 and 9? {?} 16 and 11? {?} 16 and 10? {?} 16 and 12? {?}
q: Seventeen and 6 are how many? {?} 17 and 4? {?} 17 and 7? {?} 17 and 5? {?} 17 and 9? {?} 17 and 8? {?} 17 and 10? {?} 17 and 12? {?} 17 and 11? {?}
q: Eighteen and 10 are how many? {?} 18 and 4? {?} 18 and 7? {?} 18 and 5? {?} 18 and 8? {?} 18 and 6? {?} 18 and 9? {?} 18 and 11? {?} 18 and 12? {?}
q: Nineteen and 5 are how many? {?} 19 and 3? {?} 19 and 2? {?} 19 and 7? {?} 19 and 9? {?} 19 and 8? {?} 19 and 10? {?} 19 and 6? {?} 19 and 12? {?} 19 and 11? {?}
q: How many are 29 and 2? {?} 49 and 2? {?} 69 and 2? {?} 39 and 2? {?} 59 and 2? {?} 79 and 2? {?} 99 and 2? {?}
q: How many are 29 and 3? {?} 3 and 49? {?} 59 and 3? {?} 3 and 39? {?} 69 and 3? {?} 3 and 79? {?} 3 and 89? {?} 99 and 3? {?}
q: How many are 29 and 7? {?} 7 and 49? {?} 39 and 7? {?} 7 and 59? {?} 79 and 7? {?} 7 and 69? {?} 89 and 7? {?} 7 and 99? {?}
q: How many are 29 and 8? {?} 49 and 8? {?} 39 and 8? {?} 8 and 69? {?} 59 and 8? {?} 79 and 8? {?}
q: How many are 19 and 9? {?} 9 and 29? {?} 49 and 9? {?} 69 and 9? {?} 59 and 9? {?} 79 and 9? {?} 89 and 9? {?} 9 and 99? {?}
q: How many are 28 and 3? {?} 48 and 3? {?} 68 and 3? {?} 88 and 3? {?} 98 and 3? {?}
q: How many are 28 and 7? {?} 7 and 38? {?} 48 and 7? {?} 68 and 7? {?} 58 and 7? {?} 88 and 7? {?}
q: How many are 17 and 7? {?} 27 and 7? {?} 47 and 7? {?} 57 and 7? {?} 37 and 7? {?} 67 and 7? {?} 87 and 7? {?} 77 and 7? {?} 97 and 7? {?}
q: How many are 27 and 10? {?} 47 and 10? {?} 37 and 10? {?} 57 and 10? {?}
q: How many are 15 and 6? {?} 26 and 5? {?} 25 and 6? {?} 24 and 6? {?} 26 and 4? {?} 36 and 6? {?} 48 and 6? {?} 45 and 6? {?} 57 and 6? {?} 59 and 6? {?} 66 and 6? {?} 75 and 6? {?} 86 and 6? {?}
q: How many are 17 and 3? {?} 23 and 8? {?} 24 and 8? {?} 33 and 8? {?} 3 and 37? {?} 8 and 43? {?} 47 and 3? {?} 7 and 53? {?} 58 and 3? {?} 67 and 3? {?} 3 and 87? {?} 97 and 3? {?} 88 and 3? {?}
q: How many are 9 and 24? {?} 25 and 9? {?} 9 and 34? {?} 36 and 9? {?} 9 and 44? {?} 9 and 47? {?} 54 and 9? {?} 9 and 56? {?} 9 and 64? {?} 74 and 9? {?} 9 and 72? {?} 84 and 9? {?} 86 and 9? {?} 94 and 9? {?}
q: How many are 6 and 21? {?} 10 and 26? {?} 46 and 10? {?} 10 and 35? {?} 10 and 55? {?} 56 and 10? {?} 10 and 66? {?} 10 and 69? {?} 76 and 10? {?} 10 and 86? {?} 96 and 10? {?}
q: How many are 11 and 16? {?} 11 and 27? {?} 25 and 11? {?} 11 and 23? {?} 31 and 11? {?} 11 and 35? {?} 37 and 11? {?} 11 and 59? {?} 46 and 11? {?} 11 and 48? {?} 52 and 11? {?} 11 and 63? {?}

== 5 | Addition | Long columns and counting up
q: Three and 6 and 4 are how many? {?}
sol: Three and six are nine, and four are thirteen.
q: Four and 5 and 7 are how many? {?}
q: Five and 6 and 2 are how many? {?}
q: Six and 4 and 5 are how many? {?}
q: Seven and 3 and 5 and 2 are how many? {?}
q: Eight and 2 and 3 and 4 are how many? {?}
q: Nine and 2 and 4 and 3 are how many? {?}
q: Two and 8 and 5 and 4 are how many? {?}
q: Three and 9 and 5 and 4 are how many? {?}
q: Four and 8 and 3 and 5 and 2 and 6 and 3 and 1 are how many? {?}
q: Five and 7 and 2 and 3 and 4 and 6 and 5 and 2 are how many? {?}
q: Two and 4 and 3 and 5 and 6 and 2 and 7 and 4 are how many? {?}
q: Three and 2 and 4 and 5 and 4 and 6 and 3 and 7 and 5 are how many? {?}
q: Four and 3 and 5 and 7 and 6 and 8 and 2 and 4 are how many? {?}
q: Four and 9 and 3 and 5 and 6 and 7 and 8 and 9 are how many? {?}
q: Five and 8 and 5 and 8 and 5 and 8 and 5 and 8 are how many? {?}
q: Six and 8 and 7 and 3 and 5 and 4 and 7 and 1 and 9 are how many? {?}
q: Seven and 9 and 5 and 4 and 6 and 3 and 8 and 5 and 9 are how many? {?}
q: Eight and 7 and 6 and 5 and 4 and 9 and 3 and 7 and 8 are how many? {?}
q: Nine and 6 and 7 and 4 and 5 and 3 and 8 and 2 and 9 are how many? {?}
q: Seven and 6 and 5 and 8 and 7 and 9 and 8 and 4 and 9 and 8 are how many? {?}
q: Nine and 8 and 7 and 5 and 8 and 9 and 5 and 4 and 7 and 3 and 9 and 8 are how many? {?}
q: Twelve and 11 and 7 and 4 and 9 are how many? {?}
q: Thirteen and 10 and 8 and 6 and 4 and 10 are how many? {?}
q: Fourteen and 16 and 7 and 5 and 9 and 8 and 9 and 6 and 4 are how many? {?}
q: James gave 7 cents for apples, and 8 cents for peaches: how many cents did he spend? {15}
sol: He spent 7 cents and 8 cents, which are 15 cents.
q: Seven dollars and 5 dollars and 3 dollars are how many dollars? {15}
q: David had 11 books; he bought 7 more, and his brother gave him 5: how many had he then? {23}
q: A man gave 13 dollars for a cart, 9 dollars for a plow, and 1 dollar for a rake: how much did he spend? {23}
q: James has 8 marbles in one pocket, 5 in another, 6 in another, and 7 in another: how many in all? {26}
q: If a dozen eggs cost 18 cents, and a pound of ham 10 cents, how much will both cost? {28}
q: A man owes to one person 8 dollars, to another 5 dollars, to another 3 dollars, and to another 7 dollars: how much does he owe? {23}
q: A boy gave 19 cents for a spelling-book, 8 cents for a slate, and 6 cents for pencils: how many cents did he spend? {33}
q: A drover bought hogs as follows: of one man 17, of another 9, of another 7, of another 8: how many did he buy? {41}
q: A little girl gave 10 cents for thread, 7 cents for pins, 6 cents for needles, and 9 cents for tape: how many cents did she spend? {32}
q: William has 7 cents, Thomas 10 cents, David 9 cents, and Moses 8 cents: if the other boys give their money to Moses, how many cents will he have? {34}
q: The age of Thomas is 8 years; of Frank, 5 years; and William is as old as both together: what is the sum of all their ages? {26}
sol: William's age is the sum of 8 years and 5 years, which is 13 years; and the sum of all their ages is 13 years, plus 5 years, plus 8 years, which is 26 years.
q: Joseph has 4 marbles, William has 2, and David has 16: how many have they all? {22}
q: Begin with 2, and count one hundred by adding 2 successively. Thus, 2, 4, 6, 8, 10, and so on. {2..100 by 2}
q: Begin with 3, and count ninety-nine by adding 3 successively. Thus, 3, 6, 9, 12, and so on. {3..99 by 3}
q: Begin with 4, and count one hundred by adding 4 successively. {4..100 by 4}
q: Begin with 5, and count one hundred by adding 5 successively. {5..100 by 5}
q: Begin with 6, and count one hundred and two by adding 6 successively. {6..102 by 6}
q: Begin with 7, and count ninety-eight by adding 7 successively. {7..98 by 7}
q: Begin with 8, and count one hundred and four by adding 4 successively. {8..104 by 4}
q: Begin with 9, and count ninety-nine by adding 9 successively. {9..99 by 9}
q: Begin with 1, and count one hundred by adding 3 successively. {1..100 by 3}
q: Begin with 3, and count one hundred and three by adding 4 successively. {3..103 by 4}
q: Begin with 2, and count one hundred and two by adding 5 successively. {2..102 by 5}
q: Begin with 5, and count one hundred and seven by adding 6 successively. {5..107 by 6}
q: Begin with 6, and count one hundred and four by adding 7 successively. {6..104 by 7}
q: Begin with 7, and count one hundred and three by adding 8 successively. {7..103 by 8}
q: Begin with 8, and count one hundred and seven by adding 9 successively. {8..107 by 9}

== 6 | Subtraction | Taking away
q: James had 2 apples, and gave 1 to his brother: how many had he left? {1}
sol: Why? Because 1 from 2 leaves 1.
q: Joseph had 3 apples and lost 1: how many had he left? {2}
sol: Why? Because 1 from 3 leaves 2.
q: Thomas had 4 cents, and gave 1 of them to Frank: how many had he left? {3}
q: One from 5 leaves how many? {4} From 6? {5} 7? {6} 8? {7} 9? {8} 10? {9}
q: John had 4 cents and gave his sister 2: how many had he left? {2}
q: James had 5 apples, and gave his brother 2: how many had he left? {3}
q: Two from 6 leaves how many? {4} From 7? {5} 8? {6} 9? {7} 10? {8} 11? {9}
q: Thomas had 5 cents and lost 3: how many had he left? {2}
q: Three from 6 leaves how many? {3} From 7? {4} 8? {5} 9? {6} 10? {7} 11? {8} 12? {9}
q: Joseph had 9 marbles and lost 4: how many had he left? {5}
q: Four from 10 leaves how many? {6} From 11? {7} 12? {8} 13? {9} 14? {10} 15? {11}
q: William had 10 apples and gave Joseph 5: how many had he left? {5}
q: Five from 11 leaves how many? {6} From 12? {7} 13? {8} 14? {9} 15? {10} 16? {11}
q: James had 11 marbles and lost 6: how many had he left? {5}
q: Six from 12 leaves how many? {6} From 13? {7} 14? {8} 15? {9} 16? {10} 17? {11}
q: William had 12 cents and lost 7: how many had he left? {5}
q: Seven from 13 leaves how many? {6} From 14? {7} 15? {8} 16? {9} 17? {10} 18? {11} 19? {12}
q: James had 13 apples and gave his sister 8: how many had he left? {5}
q: Eight from 14 leaves how many? {6} From 15? {7} 16? {8} 17? {9} 18? {10} 19? {11} 20? {12}
q: Thomas had 13 apples and gave his sister 9: how many had he left? {4}
q: Nine from 14 leaves how many? {5} From 15? {6} 16? {7} 17? {8} 18? {9} 19? {10} 20? {11}
q: Henry had 17 cents and lost 5: how many had he remaining? {12}
q: Mary is 12 years old, and Anna is 8: how much older is Mary than Anna? {4}
q: Sold a load of corn for 17 dollars; received for it a barrel of flour worth 6 dollars, and the rest in money: how much money did I receive? {11}
sol: I received in money as many dollars as the difference between 17 dollars and 6 dollars, which is 11 dollars.
q: A boy had 18 marbles and lost 10: how many had he then? {8}
note: Subtraction is the process of finding the difference between two numbers. The larger number is called the minuend; the smaller number, the subtrahend; and the result, the difference or remainder. The sign of subtraction (-) is called minus.

== 7 | Subtraction | The subtraction table
table: +sub 2 13
table: +sub 3 13
table: +sub 4 13
table: +sub 5 13
table: +sub 6 13
table: +sub 7 13
table: +sub 8 13
table: +sub 9 13
table: +sub 10 13

== 8 | Subtraction | Differences
q: A boy gave 9 cents for a slate, worth only 7 cents: how much did he pay for it more than it was worth? {2}
sol: He paid more than it was worth the difference between 9 cents and 7 cents, which is 2 cents.
q: A man, having 16 dollars, lost 12: how many dollars had he left? {4}
q: Bought a book for 12 cents, and a top for 7 cents: how much did the book cost more than the top? {5}
q: Thomas had 18 cents given him by two boys; one gave 9: how many did the other give? {9}
q: Bought a book for 14 cents, and gave the shop-keeper 20 cents: how much change did he return me? {6}
q: William has 19 hazel-nuts in his two pockets; in one pocket he has 15: how many are in the other? {4}
q: A man has 25 miles to travel: when he has gone 19 miles, how far will he still have to travel? {6}
q: A boy gave 24 cents for a book, and sold it for 16 cents: how much did he lose? {8}
q: James had 24 marbles; he gave 19 to his brother: how many had he left? {5}
q: A man bought a horse for 19 dollars, and sold him for 27 dollars: how much did he gain? {8}
q: A man, owing 26 dollars, paid 18; how many did he still owe? {8}
q: Frank had 26 cents given him by William and Thomas. William gave him 17: how many did Thomas give? {9} How many more did William give than Thomas? {8}
sol: Thomas gave him 26 cents less 17 cents, which are 9 cents; William gave more than Thomas 17 cents less 9 cents, which are 8 cents.
q: If you had 10 apples, and should give 2 to John, and 6 to your sister: how many would you have left? {2}
q: Abel had 36 cents, and his mother gave him enough more to make 40 cents: how many did she give him? {4}
q: George had 40 marbles; he lost 20: how many did he then have? {20}
q: A man bought 100 barrels of flour; he sold 50 barrels: how many did he have left? {50}
q: A farmer had 35 bushels of grain; a part having been wasted, he found there were but 22 bushels remaining: how much was wasted? {13}
q: John's father is 36 years old; John is 12: how many years older than John is his father? {24}
q: I had 65 cents; spent 20 cents for a book and 10 for a slate: how much had I left? {35}
sol: I spent the sum of 20 cents and 10 cents, which is 30 cents; I had left the difference between 65 cents and 30 cents, which is 35 cents.
q: If you take 10 from the sum of two numbers, there will be 8 left: what is their sum? {18}
q: If you take 16 from the difference of two numbers, there will remain 12: what is their difference? {28}
q: The sum of two numbers is 20: what number must be added to make their sum 30? {10}
q: The sum of two numbers is 16 more than their difference; if their difference is 4, what is their sum? {20}
q: The greater of two numbers is 12, and their difference 5: what is the less? {7}
q: The sum of two numbers is 21; the less number is 8: what is the greater? {13}

== 9 | Review | Adding and taking away
q: James had 13 marbles; he gave 2 to Henry, and 3 to Thomas: how many had he left? {8}
sol: James gave away 2 marbles and 3 marbles, which are 5 marbles; then he had left 13 marbles less 5 marbles, which are 8 marbles.
q: A merchant had 40 barrels of flour; he sold to one man 9, to another 21: how many had he left? {10}
q: On Christmas day, William had 36 cents given him; he spent 6 cents for apples, 9 cents for cakes, and 10 cents for candy: how many had he left? {11}
q: A man paid 30 dollars for a horse, the keeping cost 9 dollars, and he sold him for 29 dollars: how many dollars did he lose? {10}
q: A man, having 34 dollars, bought a barrel of molasses for 15 dollars, and a bag of coffee for 10 dollars: how many dollars had he left? {9}
q: A grocer bought some oranges for 9 dollars, some lemons for 7 dollars, some prunes for 5 dollars, and some figs for 9 dollars; he then sold them for 41 dollars: how much did he gain? {11}
q: A lady bought a comb for 25 cents, some pins for 10 cents, tape for 7 cents, thread for 6 cents, and a toy-book for 5 cents; she gave 60 cents to the shop-keeper: how much change ought she to receive? {7}
q: Two boys commenced playing marbles; each had 18 when they began; when they quit, one had 25: how many had the other? {11}
sol: When they began, both had 18 marbles and 18 marbles, which are 36 marbles; then, when they quit, the other had 36 marbles less 25 marbles, which are 11 marbles.
q: Thomas has 7 marbles, David 5, and Moses 11; how many have they all? {23} How many more than Thomas have Moses and David together? {9}
q: Three boys played marbles: Thomas had 20, David 10, and Moses 4; when they quit, David had 6 and Moses 12: how many had Thomas? {16}
q: A farmer had 24 sheep; 9 of them were killed by wolves, 5 of them were stolen, and 6 he sold: how many had he left? {4}
q: A grocer bought sugar for 12 dollars, flour for 6 dollars, and coffee for 5 dollars; he sold the whole for 30 dollars: how much did he make? {7}
q: A lady had 50 cents; she spent 25 cents for butter, and 10 cents for eggs: how much had she left? {15}
q: A man is indebted to A, 5 dollars; to B, 6 dollars; and to C, 10 dollars: he has cash to the amount of 20 dollars, and goods valued at 10 dollars: should he pay his debts, how much would he be worth? {9}
q: How many are 90 less 35, less 25, less 15? {?}

== 10 | Signs | Plus and minus
q: 3 - 2 + 1 = ? {?}
sol: 3 minus 2 plus 1 equals 2.
q: 4 - 3 + 2 = ? {?}
q: 6 - 5 + 4 = ? {?}
q: 8 - 7 + 6 = ? {?}
q: 7 - 3 + 5 = ? {?}
q: 9 - 4 + 7 = ? {?}
q: 4 - 3 + 2 - 1 = ? {?}
q: 6 - 5 + 4 - 3 = ? {?}
q: 8 - 4 + 6 - 5 = ? {?}
q: 9 - 5 + 7 - 2 = ? {?}
q: 9 - 4 + 3 - 2 + 1 = ? {?}
q: 8 - 5 + 4 - 3 + 2 = ? {?}
q: 7 - 3 + 5 - 4 + 3 = ? {?}
q: 8 - 2 + 6 - 5 + 4 = ? {?}
q: 9 - 5 + 7 - 6 + 5 = ? {?}
q: 6 - 2 + 4 - 3 + 2 - 1 = ? {?}
q: 7 - 4 + 5 - 4 + 3 - 2 = ? {?}
q: 8 - 5 + 6 - 5 + 4 - 3 = ? {?}
q: 9 - 6 + 7 - 6 + 5 - 4 = ? {?}
q: 7 - 6 + 5 - 4 + 3 - 2 + 1 = ? {?}
q: 8 - 6 + 6 - 5 + 4 - 3 + 2 - 1 = ? {?}
q: 9 - 5 + 7 - 6 + 5 - 4 + 3 - 2 + 1 = ? {?}
q: 1 + 2 + 3 - 4 + 5 - 6 + 7 - 5 + 9 = ? {?}
q: 9 - 1 - 2 - 3 + 4 - 5 + 6 - 4 + 8 = ? {?}
q: 1 + 9 - 2 - 3 + 3 + 7 - 6 - 4 + 5 = ? {?}
q: 9 - 7 + 8 - 5 + 6 - 3 + 4 - 2 + 1 - 10 = ? {?}
q: 1 + 3 - 2 + 4 - 5 + 7 - 6 + 8 - 9 + 10 = ? {?}

== 11 | Subtraction | Harder questions
q: Henry had 24 cents, and spent all but 15: how many did he spend? {9}
q: A man bought a cask of wine containing 27 gallons; after selling 10 gallons, he found there were but 9 gallons remaining, the rest having leaked out: how much did he lose? {8}
q: If from 20 you take 12 less 3, how many will remain? {11}
q: If from the sum of 19 and 10 you take the difference between 17 and 10, what will be left? {22}
sol: 19 plus 10 equals 29; 17 minus 10 equals 7; 29 minus 7 equals 22.
q: A man owed 60 dollars: he paid at one time 20 dollars, and at another 30 dollars; he afterwards borrowed 5 dollars: how much does he still owe? {15}
q: A man paid 38 dollars for a horse, and 20 for a colt: he afterwards sold the colt for 10 dollars, and the horse for 65: how much did he make by the transaction? {17}
q: Twenty-four less 8, and 12 less 5, are together how much less than 25? {2}
q: Engaged to do a piece of work for 60 dollars: had an assistant 25 days at a dollar a day, and paid 20 dollars for materials: how much did I earn? {15}
q: If from the sum of 8 and 9 and 10 and 11, you take the sum of 4 and 5 and 6 and 7, what will you have remaining? {16}
q: A jeweler bought a watch for 40 dollars, a chain for 15 dollars, and a key for 3 dollars: he sold them for 63 dollars: what did he gain? {5}
q: A drover bought sheep as follows: of one man, 10; of another, 12; of another, 5; of another, 3: he sold at one time, 15; and at another, 5: how many were left? {10}
q: A gentleman, having 40 dollars, purchased a suit of clothes: his pants cost 7 dollars; vest, 5 dollars; coat, 25 dollars: how much had he left? {3}
q: What number must be added to 25 to make a sum 14 less than 45? {6}
q: What number must be taken from 62 to give a result which shall be 12 more than 45? {5}
q: If from the sum of 25 and 10 and 12, you take the difference between 28 and 19, what will remain? {38}
q: A man bought a horse for 40 dollars: and, after paying 15 dollars for keeping him, sold him for 75 dollars: how much did he make? {20}
q: A gentleman engaged in trade with 75 dollars: after losing at one time 10 dollars, and at another 5, he gained 20 dollars: how much did he then have? {80}
q: The difference between two numbers is 17: the greater number is 85: what is the less? {68}
q: John and James entered into partnership in business, with a joint capital of 100 dollars. John furnished 60 dollars of the money: what was James's share? {40}
q: A barrel contained 30 gallons of syrup. Of this, 14 gallons were sold, 5 gallons leaked out, and 3 gallons were given away: how much syrup remained in the barrel? {8}
q: An orchard contains, in one row, 5 apple trees and 15 peach trees; in another row, 11 apple trees and 9 peach trees; and in another, 10 trees of each kind: how many more peach trees in the orchard than apple trees? {8}
q: How many are 87 less 14, less 21, less 51? {?}

== 12 | Multiplication | Times, with things
q: A boy gave 2 cents for one lemon, and 2 cents for another: how many cents did he give for both? {4}
sol: Why? Because 2 times 2 are 4.
q: A boy gave 3 cents for one peach, and 3 cents for another: how many cents did he give for both? {6}
q: At 4 cents apiece, what will 2 pears cost? {8}
q: At 3 cents apiece, what will 3 peaches cost? {9}
q: At 3 cents apiece, what will 4 apples cost? {12}
q: At 3 cents apiece, what will 5 postage stamps cost? {15}
q: At 4 cents apiece, what will 4 lemons cost? {16}
q: At 5 dollars a yard, what will 4 yards of cloth cost? {20}
q: At 6 dollars a barrel, what will 4 barrels of flour cost? {24}
q: At 5 cents apiece, what will 5 bananas cost? {25}
q: At 6 cents a yard, what will 5 yards of tape cost? {30}
q: At 6 cents apiece, what will 6 oranges cost? {36}
q: At 7 cents a yard, what will 2 yards of calico cost? {14}
q: At 7 cents apiece, what will 3 papers cost? {21}
q: At 7 cents apiece, what will 4 toys cost? {28}
q: If 1 marble is worth 7 apples, how many apples are 5 marbles worth? {35}
q: If 1 peach is worth 8 apples, how many apples are 2 peaches worth? {16}
q: If 1 orange cost 8 cents, how many cents will 3 oranges cost? {24} 4 oranges? {32}
q: If 1 orange is worth 8 apples, how many apples are 5 oranges worth? {40}
q: At 9 cents a yard, what will 2 yards of calico cost? {18} 3 yards? {27}
q: What will 4 quarts of nuts cost, at 10 cents a quart? {40}
q: What will 3 yards of muslin cost, at 11 cents a yard? {33}
note: Multiplication is taking one number as many times as there are units in another. The multiplicand is the number to be taken. The multiplier is the number denoting how many times the multiplicand is to be taken. The product is the result. The sign of multiplication (x) is read multiplied by.

== 13 | Multiplication | The multiplication table
table: +mul 1 12
table: +mul 2 12
table: +mul 3 12
table: +mul 4 12
table: +mul 5 12
table: +mul 6 12
table: +mul 7 12
table: +mul 8 12
table: +mul 9 12
table: +mul 10 12
table: +mul 11 12
table: +mul 12 12
q: 4 times 7 are how many? {?}
sol: 4 times 7 are 28.
q: 8 times 2? {?} 7 times 5? {?} 6 times 7? {?}
q: 8 times 6? {?} 6 times 9? {?} 9 times 7? {?}
q: 9 times 8? {?} 7 times 7? {?} 7 times 8? {?}
q: 12 times 2? {?} 2 times 10? {?} 3 times 6? {?}
q: 10 times 5? {?} 4 times 11? {?} 12 times 3? {?}
q: 8 times 8? {?} 6 times 11? {?} 9 times 2? {?}
q: 7 times 10? {?} 12 times 4? {?} 8 times 5? {?}
q: 3 times 2? {?} 4 times 2? {?} 5 times 2? {?}
q: 4 times 3? {?} 7 times 2? {?} 5 times 3? {?}
q: 5 times 4? {?} 6 times 6? {?} 11 times 2? {?}
q: 8 times 3? {?} 5 times 5? {?} 11 times 3? {?}
q: 10 times 6? {?} 6 times 12? {?} 10 times 3? {?}
q: 9 times 12? {?} 9 times 4? {?} 4 times 10? {?}
q: 11 times 10? {?} 10 times 12? {?} 8 times 12? {?}
q: 9 times 5? {?} 9 times 9? {?} 11 times 11? {?}
q: 11 times 12? {?} 11 times 5? {?} 5 times 12? {?}
q: 8 times 10? {?} 7 times 12? {?} 8 times 11? {?}
q: 11 times 9? {?} 10 times 10? {?} 12 times 11? {?}

== 14 | Multiplication | Buying, working, traveling
q: At 2 cents each, what will 7 oranges cost? {14}
sol: 7 oranges will cost 7 times 2 cents, which are 14 cents.
q: At 7 cents each, what will 3 melons cost? {21}
q: At 6 cents a dozen, what will 5 dozen apples cost? {30}
q: At 8 cents a pound, what will 7 pounds of beef cost? {56}
q: At $6 a pound, what will 8 pounds of opium cost? {48}
q: At $3 a barrel, what will 9 barrels of cider cost? {27}
q: At $4 a pair, what is the cost of 7 pairs of boots? {28}
q: At 8 cents a dozen, what will 10 dozen pens cost? {80}
q: What is the cost of 6 yards of cloth at $7 a yard? {42}
q: What do 8 barrels of flour cost at $5 a barrel? {40}
q: If a man travel 7 miles an hour, how far will he travel in 8 hours? {56}
sol: He will travel 8 times 7 miles, which are 56 miles.
q: On a chess-board are 8 rows of squares, and 8 squares in each row: how many squares on the board? {64}
q: An orchard has 11 rows of trees, and 7 trees in each row: how many trees in the orchard? {77}
q: What will 9 yards of cloth cost at $6 a yard? {54}
q: What will 9 oranges cost at 8 cents each? {72}
q: What will 8 quarts of berries cost at 12 cents a quart? {96}
q: Two men start from the same place and travel in opposite directions: one travels 2 miles an hour, the other 4 miles an hour: how far will they be apart at the end of 3 hours? {18}
sol: At the end of 1 hour they will be 2 miles plus 4 miles, equal 6 miles, apart; then, at the end of 3 hours they will be 3 times 6 miles, equal 18 miles, apart.
q: If 2 men can do a job of work in 3 days, how many days will it take 1 man to do it? {6}
sol: It will take 1 man 2 times 3 days, which are 6 days.
q: If 3 men can do a piece of work in 4 days, in how many days can 1 man do it? {12}
q: If 4 men can do a piece of work in 6 days, in how many days can 1 man do it? {24}
q: If a quantity of bread serve 8 men 4 days, how many days will it serve 1 man? {32}
q: If a man can earn $6 in 1 week, how many dollars can he earn in 8 weeks? {48}
q: A person has a piece of work which 7 men can do in 9 days; but it is necessary to have it done in 1 day: how many men must be employed? {63}
q: If $9 worth of provisions last 8 persons 11 days, how many persons will it last 1 day? {88}
q: I bought 6 barrels of apples at $2 a barrel, and 4 barrels of sugar at $11 a barrel: how much did they both cost? {56}
sol: The apples cost 6 times $2, equal $12; the sugar cost 4 times $11, equal $44; then, both cost $12 plus $44, equal $56.
note: The sign $ means dollars: thus, $6 is read 6 dollars.

== 15 | Multiplication | Mixed problems
q: Bought 2 apples at 2 cents each, 2 pears at 3 cents each, and an orange for 5 cents: what did all cost? {15}
q: Two men start from the same place and travel in the same direction; one, 5 miles an hour; the other, 7 miles an hour: how far will they be apart in 10 hours? {20}
q: If, in the above question, the men travel in opposite directions, how far will they be apart in 12 hours? {144}
q: A lady went shopping with $15; she bought 4 yards of cloth at $2 a yard; 2 pairs of gloves at $1 a pair; and a shawl for $2: what did all cost, {12} and how much had she left? {3}
q: A man bought 4 peaches at 5 cents each, 3 pears at 3 cents each, and 2 pints of chestnuts at 5 cents a pint: how much did they cost? {39}
q: What is the sum of 3 and 9 and 7, less the sum of 8 and 6 and 1? {4}
q: If a man earn 5 shillings a day, and a boy 3 shillings, how much will both earn in 7 days? {56}
q: A drover gave $10 and 7 sheep, valued at $4 a head, for a cow and calf: how much did they cost? {38}
q: A merchant sold cloth at $7 a yard: a tailor bought of this cloth, at one time, 5 yards, and, at another, 3 yards: what was the amount of his bill? {56}
q: Two brothers, Henry and Rufus, each received for his work 3 dimes a day: how many dimes did both receive for 6 days' work? {36}
q: If 12 horses can be sustained in a pasture 10 months, how many horses will it feed 1 month? {120}
q: What is 3 times the difference between 15 and the sum of 5 and 2? {24}
q: The sum of two numbers is 23; the smaller is 11: what is 5 times the larger? {60}
q: The difference between two numbers is 7: if the larger be 12, what will 8 times the smaller be? {40}
q: If a boy buy 10 cents worth of apples at 1 cent each, and sell them for 3 cents each, how much will he make? {20}
q: George bought a book for 50 cents and sold it for $1: how many cents would he have made had he bought 2 books, and sold them at the same rate as the first? {100|1}
q: Albert has 5 times 2 marbles less than 50, and Edward has 5 times 2 more than 50: how many has Albert? {40} How many has Edward? {60} How many more has Edward than Albert? {20}
q: If $3 gain $1 in a year, what will $12 gain in double the time? {8}
q: A man bought a cask of wine containing 20 gallons, at $1 a gallon; 5 gallons having leaked out, he sold the remainder at $2 a gallon: how much did he make? {10}
q: If two men travel in the same direction, one 10 miles and the other 7 miles an hour, how far will they be apart in 7 hours? {21}
q: A stage starts from a certain town, and travels at the rate of 8 miles per hour: at the same time, another starts from the same place, and travels in the same direction, 4 miles per hour: how far will they be apart at the end of 12 hours? {48}
q: A grocer bought 10 pounds of tea at 7 shillings a pound; after using 3 pounds, he sold the remainder at 10 shillings a pound: how much did the 3 pounds which he used cost him in the end? {0}
q: Bought 6 quarts of berries, at 8 cents a quart; sold 4 quarts, at 10 cents a quart, and 2 quarts, at 12 cents a quart: how much did I make? {16}
q: If an orange cost 5 cents, and an apple 2 cents, what will 2 oranges and 4 apples cost? {18}
q: If pork is 8 cents, and beef 10 cents a pound, what will 7 pounds of pork and 6 pounds of beef cost? {116}
q: If an orange cost 5 times as much as an apple, how much more will 6 oranges cost than 25 apples, if an apple is worth 1 cent? {5}
q: Bought, at one time, 5 yards of muslin, at 10 cents a yard; at another, 10 yards, at 5 cents a yard: how much did it all cost? {100|1}
q: If a man earn $15 per week, and spend $11 a week, how much will he save in 3 weeks? {12} How much can he save in 8 weeks? {32}
q: A miller bought 10 bushels of wheat, at 1 dollar a bushel, from which he made 2 barrels of flour that were sold at 7 dollars each: how much more did he get for the flour than he paid for the wheat? {4}
q: Thomas has 8 books, and his brother has five times as many less 6: how many books have both? {42}
q: What will 9 pounds of figs cost, at 12 cents a pound? {108}
q: A man employed one laborer for 6 weeks, at 7 dollars a week, and another for 5 days, at 2 dollars a day: how much did he have to pay both? {52}
q: A farmer sold 5 dozen eggs, at 11 cents a dozen, and bought 3 pounds of sugar, at 12 cents a pound: how many cents were due him? {19}
q: Seven times 9 are how many? {?}
q: How many are 2 times 3 times 4? {?}
q: How many are 4 times 3 times 12? {?}
q: A man bought a calf for 11 dollars and paid six times as much for a cow: how much did both cost him? {77}
q: Give the product of 8 multiplied by 8. {64}

== 16 | Division | How many times
q: At 1 cent each, how many cakes can you buy for 4 cents? {4}
sol: Why? Because 1 is contained in 4, four times.
q: At 2 cents each, how many apples can you buy for 4 cents? {2}
q: Among how many boys can 6 apples be divided, giving to each boy 2 apples? {3}
q: At 2 cents each, how many apples can you buy for 8 cents? {4}
q: At 3 cents each, how many peaches can you buy for 6 cents? {2}
q: At 3 cents each, how many pears can you buy for 9 cents? {3}
q: At 2 cents each, how many cakes can you buy for 10 cents? {5}
q: At 2 cents each, how many balls can you buy for 14 cents? {7}
q: At 5 cents each, how many lemons can you buy for 15 cents? {3}
q: A boy has 16 marbles, and wishes to divide them into piles of 2 each: how many piles must there be? {8}
q: At 3 cents each, how many plums can you buy for 18 cents? {6}
q: At 5 cents each, how many oranges can you buy for 20 cents? {4}
q: At $3 a yard, how many yards of cloth can you buy for $21? {7}
q: A lady spent 22 cents for tape at 2 cents a yard: how many yards did she buy? {11}
q: At 6 cents each, how many oranges can you buy for 24 cents? {4} How many at 8 cents each? {3}
q: In an orchard of 25 apple trees there are 5 rows: how many trees in each row? {5}
q: If a man can travel 3 miles in an hour, how many hours will it take him to travel 27 miles? {9}
q: A man gave $28 for sheep, at $4 a head: how many did he buy? {7}
q: If you had 30 cents, how many marbles could you buy at 3 cents each? {10}
q: There are 32 dimes on a table in 4 piles: how many in each pile? {8}
q: In an orchard containing 35 apple trees, there are 5 rows: how many trees are there in each row? {7}
q: Six men receive $36 for a job of work: what is each man's share? {6}
q: Four quarts make 1 gallon: how many gallons in 36 quarts? {9}
q: If a man travel 10 miles in 1 hour, in how many hours will he travel 40 miles? {4}
q: Forty-two cents were divided equally among 6 boys: how many cents did each boy receive? {7}
q: If you divide 45 oranges equally among 9 boys: how many oranges will each boy receive? {5}
note: Division is the process of finding how many times one number is contained in another. The divisor is the number by which to divide. The dividend is the number to be divided. The quotient is the result. The sign of division (/) is read divided by.

== 17 | Division | The division table
table: +div 2 12
table: +div 3 12
table: +div 4 12
table: +div 5 12
table: +div 6 12
table: +div 7 12
table: +div 8 12
table: +div 9 12
table: +div 10 12
table: +div 11 12
table: +div 12 12

== 18 | Division | Sharing and parts
q: Two is contained in 12 how many times? {6}
sol: 2 is contained in 12 six times.
q: Two in 16 how many times? {8} 2 in 24? {?} 3 in 9? {?} 3 in 15? {?} 3 in 21? {?} 3 in 27? {?} 4 in 8? {?} 4 in 20? {?} 4 in 28? {?} 4 in 36? {?} 4 in 48? {?}
q: Five is contained in 15 how many times? {3} 5 in 30? {?} 5 in 45? {?} 5 in 60? {?} 6 in 18? {?} 6 in 24? {?} 6 in 36? {?} 6 in 42? {?} 6 in 54? {?} 6 in 66? {?}
q: Seven in 14 how many times? {2} 7 in 28? {?} 7 in 42? {?} 7 in 56? {?} 7 in 63? {?} 7 in 84? {?} 8 in 24? {?} 8 in 40? {?} 8 in 56? {?} 8 in 72? {?} 8 in 96? {?}
q: Nine in 18 how many times? {2} 9 in 27? {?} 9 in 45? {?} 9 in 54? {?} 9 in 63? {?} 9 in 81? {?} 9 in 108? {?} 10 in 20? {?} 10 in 60? {?} 10 in 90? {?} 10 in 100? {?}
q: Eleven in 55 how many times? {5} 11 in 77? {?} 11 in 99? {?} 11 in 110? {?} 11 in 121? {?} 12 in 24? {?} 12 in 48? {?} 12 in 60? {?} 12 in 72? {?} 12 in 96? {?} 12 in 108? {?} 12 in 120? {?} 12 in 144? {?}
q: If 12 peaches be divided equally among 3 children, how many will each child have? {4}
sol: Each child will have one-third of 12 peaches, which is 4 peaches.
q: Four boys gave their sister 24 apples, each an equal number: how many did each give? {6}
q: A mother divided 20 cents equally between her 2 little girls: how many did each receive? {10}
q: Five books cost 35 cents: how much is that apiece? {7}
q: A man has $40: if he spend $5 a week, how many weeks will it last? {8}
sol: The money will last as many weeks as $5 are contained times in $40, which are 8.
q: If 5 apples are worth 1 pear, how many pears are 25 apples worth? {5} 35 apples? {7} 45 apples? {9}
q: If 6 pears are worth an orange, how many oranges can you get for 30 pears? {5} For 42 pears? {7} For 54 pears? {9} For 66 pears? {11}
q: If 1 man do a piece of work in 42 days, how many days will it take 7 men to perform it? {6}
q: If 1 man can eat a certain quantity of provisions in 56 days, how many days will it last 7 men? {8}
q: If 1 pipe empty a cistern in 63 hours, in how many hours will 9 pipes of the same size empty it? {7}
q: If hay is worth $9 a ton, how many tons can be bought for $27? {3} For $45? {5} For $54? {6} For $63? {7}
q: Ten men bought a horse for $60: how much did each one pay? {6}
q: If 11 ounces of powder cost 88 cents: what will 1 ounce cost? {8}
q: A man paid $108 for 12 merino sheep: how much was that apiece? {9}
q: In an orchard there are 120 trees in 10 rows: how many trees in each row? {12}
q: A man earns $144 in 12 weeks: how much is that a week? {12} How much a day, allowing 6 working days to the week? {2}
q: If 6 men earn $84 in 7 days, how much does each man earn in 1 day? {2}
sol: In one day they earn one-seventh of $84, which is $12; then, each man earns in one day one-sixth of $12, which is $2.
q: If 9 men earn $108 in 3 days, how much does 1 man earn? {12} How much does each man earn in 1 day? {4}
q: One man travels at the rate of 15 miles in 3 days; another at the rate of 20 miles in 2 days: how much further in one day does the latter travel than the former? {5}

== 19 | Division | Times and parts
q: Twelve is how many times 2? {?}
sol: As many as 2 is contained times in 12, which are 6.
q: Twenty-four is how many times 3? {8} 6? {4} 8? {3} 12? {2}
q: Seventy-two is how many times 12? {6} 8? {9} 6? {12} 9? {8}
q: How many oranges, at 5 cents each, must be given for 10 pears, at 2 cents each? {4}
sol: The pears cost 10 times 2 cents, which are 20 cents; for this, as many oranges must be given as 5 cents are contained times in 20 cents, which are 4.
q: A wheel is 10 feet in circumference: how many revolutions will it make in going 120 feet? {12}
q: An orchard contains 10 rows of trees, and 6 trees in a row; if there were but 5 rows, how many trees would there be in a row? {12}
q: I have three times as many marbles as the sum of 1, 2, and 3, is contained times in 60: how many have I? {30}
sol: 1 and 2 and 3 are 6; 6 is contained in 60, 10 times; 3 times 10 are 30.
q: Bought 6 hats, at $5 apiece, and 4 yards of cloth, at $3 a yard; gave in exchange flour, at $6 a barrel: how many barrels did it take? {7}
sol: The hats cost 6 times $5, which are $30; the cloth, 4 times $3, which are $12; both cost $30 plus $12, which are $42. It took as many barrels as $6 are contained times in $42, which are 7.
q: If a man gain 6 miles in 5 hours, how many hours will it take to gain 24 miles? {20}
sol: 24 miles are 4 times 6 miles; then, it will take 4 times 5 hours, which are 20 hours.
q: Two times 6 are contained how many times in the sum of 36 and 12? {4}
q: If 60 be divided by some number, the result will be 10: what is that number? {6}
q: I have a number in my mind which, divided by 3, gives 2 times 6: what is the number? {36}
q: If I purchase lemons at the rate of 2 for 6 cents, and sell 7 for 28 cents, how much do I gain on each lemon? {1}
sol: Each lemon costs 3 cents and sells for 4 cents: I gain 1 cent on each lemon.
q: A man has a job of work which 9 men can perform in 2 days; he desires to complete it in 3 days: how many men must he employ? {6}
q: Five times the sum of two numbers is equal to 60; if 7 is one of them, what is the other? {5}
q: Henry has 6 dimes; Thomas, twice as many less 2; and Samuel, 3 times as many as Henry: how many have they together? {34}
q: If to the number of times 4 is contained in 12, you add 3, and subtract the result from 9, what will remain? {3}
q: Five oranges were sold for 25 cents, and 10 cents were gained: what did each cost? {3}
q: What number subtracted from 17, will leave double the remainder that 5 from 9 leaves? {9}
q: A boy said that 10 taken from the number of apples he had, left twice as great a remainder as the difference between 12 and 8: how many had he? {18}
q: If you multiply any number, 10, by any other number, 5, and divide the product by the same number, 5, what will be the result? {10}
q: If 2 oranges are worth 5 apples, how many apples are 12 oranges worth? {30}
sol: 12 oranges are 6 times 2 oranges; then, they are worth 6 times 5 apples, which are 30 apples.
q: One man goes 10 miles while another goes 7; when the first has gone 90 miles, how far has the second gone? {63}
q: James earns 8 cents while John earns 12; when John has earned 60, how many has James earned? {40}
q: George recites 5 lessons while Charles recites 4; how many lessons have both recited when Charles has recited 20? {45}
q: A man earns $9 while a boy earns $5: how many dollars have both earned when the man has earned $36? {56}
q: A certain number multiplied by 10 is 5 less than 45: what is that number? {4}
q: How many barrels of flour, at $9 a barrel, could you buy for $54? {6}
q: William counts 11 while James counts 7: how many does James count while William is counting 77? {49}
q: How many yards of velvet, at $12 a yard, can be obtained for $108? {9}
q: If 8 sheep cost $56, how much will 3 sheep cost? {21}
q: At 4 cents a pound, how many pounds of salt can you buy with 44 cents? {11}
q: If a man travel at the rate of 10 miles an hour, how many hours will it take him to go 100 miles? {10}
q: How many men can in 5 days do a piece of work which occupies 3 men 10 days? {6}
sol: It will take 1 man 3 times 10 days, which is 30 days. It will take as many men to do it in 5 days as 5 days are contained times in 30 days, which are 6.
q: How many men can in 3 days do the same amount of work that employs 9 men 4 days? {12}

== 20 | Fractions | Halves, thirds, fourths
note: A unit is a single thing; as, one apple. If a unit is divided into two equal parts, one of the parts is called one-half; into three equal parts, each part is one-third; into four, one-fourth; and so on.
q: How many halves in 2 apples? {4} In 3? {6} In 4? {8} In 5? {10} In 6? {12} In 7? {14} In 8? {16} In 9? {18} In 10? {20}
sol: In 1 apple there are 2 halves, and in 2 apples there are 2 times 2 halves, which are 4 halves.
q: How many thirds in 2 apples? {6} In 3? {9} In 4? {12} In 5? {15} In 6? {18} In 7? {21} In 8? {24} In 9? {27} In 10? {30}
q: How many fourths in 2 apples? {8} In 3? {12} In 4? {16} In 5? {20} In 6? {24} In 7? {28} In 8? {32} In 9? {36} In 10? {40}
q: How many fifths in 2 apples? {10} In 3? {15} In 4? {20} In 5? {25} In 6? {30} In 7? {35} In 8? {40} In 9? {45} In 10? {50}
q: How many sixths in 2 apples? {12} In 3? {18} In 4? {24} In 5? {30} In 6? {36} In 7? {42} In 8? {48} In 9? {54} In 10? {60}
q: How many sevenths in 2 apples? {14} In 3? {21} In 4? {28} In 5? {35} In 6? {42} In 7? {49} In 8? {56} In 9? {63} In 10? {70}
q: How many eighths in 2 apples? {16} In 3? {24} In 4? {32} In 5? {40} In 6? {48} In 7? {56} In 8? {64} In 9? {72} In 10? {80}
q: How many ninths in 2 apples? {18} In 3? {27} In 4? {36} In 5? {45} In 6? {54} In 7? {63} In 8? {72} In 9? {81} In 10? {90}
q: How many thirds in 3 units? {9} How many fifths? {15} Sevenths? {21} Ninths? {27}
q: How many fourths in 5 oranges? {20} How many eighths? {40} Thirds? {15}
q: In 11 apples, how many sixths? {66} How many halves? {22} Fifths? {55} Ninths? {99}

== 21 | Fractions | Writing and reading fractions
note: A fraction is one or more equal parts of a unit. It is written with two numbers, one above the other: one-half is 1/2, two-fifths 2/5. The lower number, the denominator, shows the number of parts the unit is divided into; the upper number, the numerator, shows how many parts are taken. A proper fraction is less than 1; an improper fraction is equal to or greater than 1. A mixed number is a whole number and a fraction, as 2 1/2, read two and one-half.
q: Write these fractions on your slate: two-thirds, four-fifths, six-sevenths, eight-ninths, one-tenth, three-tenths, nine-tenths, seven-elevenths, five-twelfths. {open}
q: Read these fractions out loud: 3/5, 4/7, 5/9, 7/12, 8/17, 17/22, 24/31, 35/42, 49/51. {open}
q: Which are proper and which improper fractions? 1/2, 2/1, 3/4, 4/3, 5/6, 6/5, 7/8, 8/7, 9/10, 10/9, 11/12, 14/13, 15/16, 17/18, 25/21, 34/42, 54/45, 65/76. {open}
q: Read these mixed numbers out loud: 4 1/2, 6 1/4, 7 3/8, 9 5/12, 18 6/7, 22 8/9, 35 7/11, 48 3/10. {open}

== 22 | Fractions | A part of a number
q: If a yard of tape is worth 2 cents, what is 1/2 of a yard worth? {1}
sol: 1/2 of a yard is worth 1/2 of 2 cents, which is 1 cent.
q: If an apple is worth 3 cents, what is 1/3 of the apple worth? {1}
q: A yard of cloth costs $6, what would 2/3 of a yard cost? {4}
sol: 1/3 of a yard would cost 1/3 of $6, which is $2; then, 2/3 of a yard would cost 2 times $2, which are $4.
q: James had 4 apples and gave his brother 1/2 of them: how many did he give him? {2}
q: If a melon is worth 8 cents, what are 3/4 of a melon worth? {6}
q: If a barrel of flour costs $10, what is the cost of 2/5 of a barrel? {4} Of 3/5? {6} Of 4/5? {8}
q: If a dozen eggs are worth 12 cents, what are 5/6 of a dozen worth? {10}
q: What are 2/3 of 9? {?}
sol: 1/3 of 9 is 3; then, 2/3 of 9 are 2 times 3, which are 6.
q: What are 3/4 of 20? {?}
q: What are 2/5 of 15? {?} 3/5 of 20? {?} 4/5 of 25? {?}
q: What are 2/7 of 14? {?} 3/7 of 21? {?} 4/7 of 28? {?} 5/7 of 35? {?} 6/7 of 42? {?}
q: What are 3/8 of 16? {?} 5/8 of 24? {?} 7/8 of 32? {?}
q: What are 2/9 of 9? {?} 4/9 of 18? {?} 5/9 of 27? {?} 7/9 of 36? {?} 8/9 of 45? {?}
q: What are 3/10 of 10? {?} 7/10 of 20? {?} 9/10 of 30? {?}
q: What are 2/11 of 11? {?} 3/11 of 22? {?} 4/11 of 33? {?} 5/11 of 44? {?} 6/11 of 55? {?} 7/11 of 66? {?} 8/11 of 77? {?}
q: What are 5/12 of 24? {?} 7/12 of 36? {?} 11/12 of 48? {?}
q: If 2 apples cost 4 cents, what will 1 apple cost? {2}
sol: 1 apple will cost 1/2 of 4 cents, which is 2 cents.
q: If 3 yards of cloth cost $9, what will 1 yard cost? {3}
q: If 3 oranges are worth 15 cents, what are 2 oranges worth? {10}
sol: 1 orange is worth 1/3 of 15, or 5 cents; then, 2 oranges are worth 2 times 5 cents, which are 10 cents.
q: If 5 barrels of flour are sold for $30, what would 3 barrels sell for? {18}
q: A grocer sells 7 pounds of sugar for 70 cents: what will he sell 5 pounds for? {50}
q: A lady purchased 8 yards of calico for 72 cents; she afterward found that she needed 5 yards more of the same: how much did it cost? {45}
q: A drover bought 12 calves for $120; he sold 7 of them for what they cost him: what did he get for them? {70}
sol: One calf cost 1/12 of $120, which is $10; and if 1 calf cost $10, he sold the 7 calves for 7 times $10, which is $70.

== 23 | Fractions | What part?
q: If an apple costs 2 cents, what part of the apple costs 1 cent? {~1/2}
sol: 1 cent is the cost of 1/2 of the apple.
q: A boy bought a pear for 3 cents: what part of the pear cost 1 cent? {~1/3}
q: If the price of a yard of cloth is $3, what part of a yard will cost $2? {~2/3}
sol: $1 will be the cost of 1/3 of a yard; then $2 will be the cost of 2 times 1/3 of a yard, which are 2/3 of a yard.
q: If you buy an orange for 4 cents, what part of the orange costs 3 cents? {~3/4}
q: If a melon is worth 5 cents, what part of the melon is worth 2 cents? {~2/5} 3 cents? {~3/5} 4 cents? {~4/5}
q: If a barrel of apples cost $6, what part of a barrel will cost $5? {~5/6}
q: James had 7 marbles and gave his brother 4 of them: what part did he give away? {~4/7}
q: A lady went shopping with $10; she spent $7: what part of her money did she spend? {~7/10}
q: If a bushel of clover seed cost $8, what part of a bushel can be bought for $5? {~5/8}
q: 5 is what part of 7? {~5/7}
sol: 1 is 1/7 of 7; then, 5 is 5 times 1/7 = 5/7 of 7.
q: 3 is what part of 8? {~3/8} Of 10? {~3/10} Of 11? {~3/11} Of 20? {~3/20}
q: 4 is what part of 9? {~4/9} Of 11? {~4/11} Of 15? {~4/15} Of 25? {~4/25}
q: 5 is what part of 8? {~5/8} Of 9? {~5/9} Of 12? {~5/12} Of 16? {~5/16}
q: What part of 15 is 2? {~2/15} 7? {~7/15} 8? {~8/15} 11? {~11/15} 13? {~13/15}
q: What part of 20 is 3? {~3/20} 7? {~7/20} 11? {~11/20} 13? {~13/20} 17? {~17/20}
q: 3/5 of 30 is what part of 23? {~18/23}
q: 6/7 of 28 is what part of 35? {~24/35}
q: 2/3 of 21 is what part of 19? {~14/19}
q: 1/2 of 4 is what part of 1/3 of 9? {~2/3}
q: 3/4 of 12 is what part of 5/6 of 24? {~9/20}
q: 2/5 of 10 is what part of 3/7 of 21? {~4/9}
q: 3/8 of 16 is what part of 5/7 of 35? {~6/25}
q: 4/9 of 18 is what part of 3/11 of 77? {~8/21}
q: 9/10 of 30 is what part of 5/7 of 49? {~27/35}

== 24 | Fractions | Finding the whole
q: If 1/2 an apple is worth 1 cent, what is the apple worth? {2}
sol: The apple is worth 2 times 1 cent = 2 cents.
q: If 1/3 of an orange is worth 2 cents, what is the orange worth? {6}
q: If 2/3 of a lemon are worth 6 cents, what is the lemon worth? {9}
sol: 1/3 of the lemon is worth 1/2 of 6 cents = 3 cents; then, the lemon is worth 3 times 3 cents = 9 cents.
q: If 3/4 of a barrel of flour cost $9, what will a barrel cost? {12}
q: If 2/5 of a pound of coffee cost 10 cents, what is the price of a pound? {25}
q: If 4/5 of a pound of butter cost 12 cents, what will a pound cost? {15}
q: If 5/6 of a gallon of wine cost 35 cents, what will a gallon cost? {42}
q: 6 is 2/7 of what number? {21}
sol: 1/7 of the number is 1/2 of 6 = 3; then, the number is 7 times 3 = 21.
q: 6 is 2/9 of what number? {27} 2/11? {33}
q: 12 is 3/4 of what number? {16} 3/5? {20} 3/7? {28} 3/8? {32} 3/10? {40} 3/11? {44}
q: 20 is 4/5 of what number? {25} 4/7? {35} 4/9? {45} 4/11? {55}
q: 30 is 5/6 of what number? {36} 5/7? {42} 5/8? {48} 5/9? {54} 5/11? {66} 5/12? {72}
q: 42 is 6/7 of what number? {49} 6/11? {77}
q: 56 is 7/8 of what number? {64} 7/9? {72} 7/10? {80}
q: 72 is 8/9 of what number? {81} 8/11? {99}
q: 90 is 9/10 of what number? {100}
q: If you have 8 cents, and 3/4 of your money equals 2/3 of mine, how many cents have I? {9}
sol: 3/4 of 8 cents = 6 cents; then, if 2/3 of my money = 6 cents, 1/3 of my money is 1/2 of 6 cents = 3 cents, and all my money is 3 times 3 cents = 9 cents.
q: William says to Frank: "Your age is 15 years, and 4/5 of your age is 3/4 of mine: what is my age?" {16}
q: 5/6 of 18 are 3/5 of what number? {25}
sol: 5/6 of 18 = 15; then, 3/5 of some number = 15. 1/5 of the number is 1/3 of 15 = 5, and the number is 5 times 5 = 25.
q: 6/7 of 14 are 3/8 of what number? {32}
q: 5/8 of 16 are 2/7 of what number? {35}
q: 2/9 of 27 are 3/10 of what number? {20}
q: 5/9 of 36 are 4/11 of what number? {55}
q: 7/10 of 20 are 2/11 of what number? {77}
q: 3/11 of 55 are 5/12 of what number? {36}

== 25 | Fractions | Sharing that doesn't come out even
q: Divide 3 apples between 2 boys, giving to each the same amount: how many apples does each boy get? {~3/2}
sol: Each boy will receive 1/2 of 3 apples, which is 3/2 = 1 1/2 apples.
q: A grocer gave 4 oranges to 3 boys, provided they would divide them equally: what was the share of each? {~4/3}
q: If 2 pears cost 5 cents, how much is that apiece? {~5/2}
q: If 3 yards of cloth cost $5, what is the price per yard? {~5/3}
q: Henry bought 4 pens for 5 cents: what was the cost of each? {~5/4}
q: 1/5 of 6 = what? {~6/5}
sol: 1/5 of 6 is 6/5 = 1 1/5.
q: 1/2 of 7 = what? {~7/2} 1/3 of 7? {~7/3} 1/4 of 7? {~7/4} 1/5 of 7? {~7/5} 1/6 of 7? {~7/6}
q: 1/3 of 8 = what? {~8/3} 1/5 of 8? {~8/5} 1/7 of 8? {~8/7}
q: 1/2 of 9 = what? {~9/2} 1/4 of 9? {~9/4} 1/5 of 9? {~9/5} 1/7 of 9? {~9/7} 1/8 of 9? {~9/8}
q: 1/3 of 10 = what? {~10/3} 1/7 of 10? {~10/7} 1/9 of 10? {~10/9}
q: 1/2 of 11 = what? {~11/2} 1/3 of 11? {~11/3} 1/4 of 11? {~11/4} 1/5 of 11? {~11/5} 1/6 of 11? {~11/6} 1/7 of 11? {~11/7} 1/8 of 11? {~11/8} 1/9 of 11? {~11/9} 1/10 of 11? {~11/10}
q: 1/5 of 12 = what? {~12/5} 1/7 of 12? {~12/7} 1/11 of 12? {~12/11}
q: For 5 cents, how many apples can I buy at 2 cents each? {~5/2}
sol: I can buy as many apples as 2 cents are contained times in 5 cents, which are 5/2 = 2 1/2.
q: At $3 a yard, how many yards of cloth can be purchased for $7? {~7/3}
q: Harriet spent 13 cents for braid, at 4 cents a yard: how many yards did she buy? {~13/4}
q: When milk is worth 5 cents a pint, how many pints can you get for 17 cents? {~17/5}
q: For $23, how many barrels of flour can be bought at $6 a barrel? {~23/6}
q: A lady spent 25 cents for ribbon, at 7 cents a yard: how many yards did she buy? {~25/7}
q: How many times 2 is 13? {~13/2}
sol: As many as 2 is contained times in 13, which are 13/2 = 6 1/2.
q: How many times 2 is 15? {~15/2} 17? {~17/2} 19? {~19/2} 21? {~21/2} 23? {~23/2}
q: How many times 3 is 20? {~20/3} 26? {~26/3} 29? {~29/3} 31? {~31/3} 35? {~35/3}
q: How many times 4 is 27? {~27/4} 33? {~33/4} 39? {~39/4} 41? {~41/4} 47? {~47/4}
q: How many times 6 is 43? {~43/6} 47? {~47/6} 49? {~49/6} 59? {~59/6} 61? {~61/6}
q: How many times 7 is 24? {~24/7} 32? {~32/7} 40? {~40/7} 48? {~48/7} 57? {~57/7}
q: How many times 8 is 45? {~45/8} 55? {~55/8} 67? {~67/8} 71? {~71/8} 81? {~81/8}
q: How many times 9 is 34? {~34/9} 38? {~38/9} 50? {~50/9} 58? {~58/9} 64? {~64/9}
q: How many times 10 is 63? {~63/10} 69? {~69/10} 77? {~77/10} 83? {~83/10} 91? {~91/10}
q: How many times 11 is 42? {~42/11} 46? {~46/11} 54? {~54/11} 60? {~60/11} 70? {~70/11}
q: How many times 12 is 68? {~68/12} 79? {~79/12} 85? {~85/12} 89? {~89/12} 95? {~95/12}

== 26 | Fractions | Mixed numbers into parts
q: How many halves in 2 1/2? {5}
sol: In 1 there are 2/2; then, in 2 there are 2 times 2/2 = 4/2; 4/2 + 1/2 = 5/2.
q: How many halves in 3 1/2? {7} 4 1/2? {9} 5 1/2? {11} 6 1/2? {13}
q: How many thirds in 4 1/3? {13} 5 2/3? {17} 6 1/3? {19} 7 2/3? {23}
q: How many fourths in 3 1/4? {13} 4 3/4? {19} 5 1/4? {21} 6 3/4? {27}
q: How many fifths in 1 1/5? {6} 3 2/5? {17} 6 2/5? {32} 7 1/5? {36}
q: How many sixths in 2 5/6? {17} 4 5/6? {29} 5 1/6? {31} 6 5/6? {41}
q: How many sevenths in 5 3/7? {38} 6 4/7? {46} 7 5/7? {54} 8 6/7? {62}
q: How many eighths in 3 5/8? {29} 4 7/8? {39} 5 1/8? {41} 6 3/8? {51}
q: How many ninths in 6 8/9? {62} 7 1/9? {64} 8 2/9? {74} 9 5/9? {86}
q: How many tenths in 6 3/10? {63} 7 7/10? {77} 8 9/10? {89} 9 1/10? {91}
q: How many elevenths in 6 5/11? {71} 7 6/11? {83} 8 7/11? {95} 9 8/11? {107}
q: How many twelfths in 5 1/12? {61} 6 7/12? {79} 7 5/12? {89} 9 5/12? {113}

== 27 | Fractions | Lowest terms
note: A fraction is in its lowest terms when no number greater than 1 will divide both terms.
q: Reduce 2/4 to its lowest terms. {=1/2}
sol: Dividing both terms of 2/4 by 2, the result is 1/2.
q: Reduce 2/6 to its lowest terms. {=1/3}
q: Reduce 3/6 to its lowest terms. {=1/2}
q: Reduce 4/6 to its lowest terms. {=2/3}
q: Reduce 4/8 to its lowest terms. {=1/2}
sol: Dividing both terms of 4/8 by 2, the result is 2/4; dividing both terms of 2/4 by 2, the result is 1/2.
q: Reduce to lowest terms: 5/10? {=1/2} 3/9? {=1/3} 6/8? {=3/4} 4/10? {=2/5} 8/10? {=4/5} 10/12? {=5/6}
q: Reduce to lowest terms: 6/12? {=1/2} 5/15? {=1/3} 6/9? {=2/3} 9/12? {=3/4} 12/15? {=4/5} 15/18? {=5/6}
q: Reduce to lowest terms: 8/12? {=2/3} 12/16? {=3/4} 10/25? {=2/5} 12/20? {=3/5} 20/24? {=5/6} 21/49? {=3/7}
q: Reduce to lowest terms: 9/24? {=3/8} 10/35? {=2/7} 15/20? {=3/4} 18/30? {=3/5} 25/30? {=5/6} 32/56? {=4/7}
q: Reduce to lowest terms: 12/27? {=4/9} 14/21? {=2/3} 18/24? {=3/4} 21/35? {=3/5} 30/36? {=5/6} 36/63? {=4/7}
q: Reduce to lowest terms: 12/30? {=2/5} 16/24? {=2/3} 21/28? {=3/4} 24/40? {=3/5} 30/42? {=5/7} 35/56? {=5/8}
q: Reduce to lowest terms: 18/27? {=2/3} 20/25? {=4/5} 24/32? {=3/4} 25/40? {=5/8} 25/45? {=5/9} 35/42? {=5/6}
q: Reduce to lowest terms: 27/36? {=3/4} 36/45? {=4/5} 45/54? {=5/6} 48/56? {=6/7} 49/63? {=7/9} 56/64? {=7/8}
q: Reduce to lowest terms: 28/35? {=4/5} 40/48? {=5/6} 42/49? {=6/7} 42/54? {=7/9} 63/72? {=7/8} 72/81? {=8/9}

== 28 | Fractions | Changing the denominator
q: Reduce 1/2 to fourths. {=2/4}
sol: In 1 there are four-fourths; then, in 1/2 there is 1/2 of 4 fourths = 2 fourths.
q: Reduce 1/3 to . {=1/3}
q: Reduce 1/4 to fourths. {=1/4}
q: Reduce 1/5 to . {=1/5}
q: Reduce 1/6 to sixths. {=1/6}
q: Reduce 1/3 to . {=1/3}
q: Reduce 1/4 to fourths. {=1/4}
q: Reduce 2/3 to . {=2/3}
sol: 1 = 6/6; then, 1/3 = 2/6, and 2/3 = 4/6.
q: Reduce 2/3 to ninths. {=6/9} Reduce 2/3 to twelfths. {=8/12}
q: Reduce 3/4 to eighths. {=6/8} Reduce 3/4 to twelfths. {=9/12}
q: Reduce 2/5 to tenths. {=4/10} Reduce 2/5 to fifteenths. {=6/15}
q: Reduce 3/5 to twentieths. {=12/20} Reduce 3/5 to twenty-fifths. {=15/25}
q: Reduce 4/5 to thirtieths. {=24/30} Reduce 4/5 to thirty-fifths. {=28/35}
q: Reduce 5/6 to twelfths. {=10/12} Reduce 5/6 to eighteenths. {=15/18}
q: Reduce 3/7 to fourteenths. {=6/14} Reduce 3/7 to twenty-firsts. {=9/21}
q: Reduce 5/7 to twenty-eighths. {=20/28} Reduce 5/7 to thirty-fifths. {=25/35}
q: Reduce 3/8 to sixteenths. {=6/16} Reduce 3/8 to twenty-fourths. {=9/24}
q: Reduce 5/8 to thirty-seconds. {=20/32} Reduce 5/8 to fortieths. {=25/40}
q: Reduce 2/9 to eighteenths. {=4/18} Reduce 2/9 to twenty-sevenths. {=6/27}
q: Reduce 4/9 to thirty-sixths. {=16/36} Reduce 4/9 to forty-fifths. {=20/45}
q: Reduce 5/9 to fifty-fourths. {=30/54} Reduce 5/9 to sixty-thirds. {=35/63}
q: Reduce 7/10 to twentieths. {=14/20} Reduce 7/10 to thirtieths. {=21/30}
q: Reduce 5/12 to twenty-fourths. {=10/24} Reduce 5/12 to thirty-sixths. {=15/36}

== 29 | Fractions | Common denominators
note: When two or more fractions have the same denominators, they have a common denominator. It may be found by multiplying the denominators together, or by finding their least common multiple, the least number that can be divided by them.
q: Reduce 2/3 and 3/4 to a common denominator. 2/3 = ? {=8/12} 3/4 = ? {=9/12}
sol: The common denominator is 3 x 4 = 12. 1/3 = 4/12, 2/3 = 8/12; 1/4 = 3/12, 3/4 = 9/12.
q: Reduce 1/2 and 1/3 to a common denominator. 1/2 = ? {=3/6} 1/3 = ? {=2/6}
q: Reduce 1/2 and 1/5 to a common denominator. 1/2 = ? {=5/10} 1/5 = ? {=2/10}
q: Reduce 1/3 and 1/5 to a common denominator. 1/3 = ? {=5/15} 1/5 = ? {=3/15}
q: Reduce 1/3 and 1/4 to a common denominator. 1/3 = ? {=4/12} 1/4 = ? {=3/12}
q: Reduce 1/3 and 1/5 to a common denominator. 1/3 = ? {=5/15} 1/5 = ? {=3/15}
q: Reduce 1/4 and 1/5 to a common denominator. 1/4 = ? {=5/20} 1/5 = ? {=4/20}
q: Reduce 2/3 and 2/5 to a common denominator. 2/3 = ? {=10/15} 2/5 = ? {=6/15}
q: Reduce 2/3 and 3/5 to a common denominator. 2/3 = ? {=10/15} 3/5 = ? {=9/15}
q: Reduce 2/3 and 4/5 to a common denominator. 2/3 = ? {=10/15} 4/5 = ? {=12/15}
q: Reduce 3/4 and 2/5 to a common denominator. 3/4 = ? {=15/20} 2/5 = ? {=8/20}
q: Reduce 3/4 and 3/5 to a common denominator. 3/4 = ? {=15/20} 3/5 = ? {=12/20}
q: Reduce 3/4 and 4/5 to a common denominator. 3/4 = ? {=15/20} 4/5 = ? {=16/20}
q: Reduce 2/5 and 5/6 to a common denominator. 2/5 = ? {=12/30} 5/6 = ? {=25/30}
q: Reduce 3/5 and 5/6 to a common denominator. 3/5 = ? {=18/30} 5/6 = ? {=25/30}
q: Reduce 4/5 and 5/6 to a common denominator. 4/5 = ? {=24/30} 5/6 = ? {=25/30}
q: Reduce 5/6 and 2/7 to a common denominator. 5/6 = ? {=35/42} 2/7 = ? {=12/42}
q: Reduce 5/6 and 3/7 to a common denominator. 5/6 = ? {=35/42} 3/7 = ? {=18/42}
q: Reduce 5/6 and 4/7 to a common denominator. 5/6 = ? {=35/42} 4/7 = ? {=24/42}
q: Reduce 5/7 and 3/8 to a common denominator. 5/7 = ? {=40/56} 3/8 = ? {=21/56}
q: Reduce 6/7 and 5/8 to a common denominator. 6/7 = ? {=48/56} 5/8 = ? {=35/56}
q: Reduce 7/8 and 2/9 to a common denominator. 7/8 = ? {=63/72} 2/9 = ? {=16/72}
q: Reduce 4/9 and 3/10 to a common denominator. 4/9 = ? {=40/90} 3/10 = ? {=27/90}
q: Reduce 5/9 and 7/10 to a common denominator. 5/9 = ? {=50/90} 7/10 = ? {=63/90}
q: Reduce 7/9 and 9/10 to a common denominator. 7/9 = ? {=70/90} 9/10 = ? {=81/90}
q: Reduce 1/2, 1/3 and 1/5 to a common denominator. 1/2 = ? {=15/30} 1/3 = ? {=10/30} 1/5 = ? {=6/30}
q: Reduce 1/3, 1/4 and 1/5 to a common denominator. 1/3 = ? {=20/60} 1/4 = ? {=15/60} 1/5 = ? {=12/60}
q: Reduce 2/3, 3/4 and 2/5 to a common denominator. 2/3 = ? {=40/60} 3/4 = ? {=45/60} 2/5 = ? {=24/60}
q: Reduce 3/5, 5/6 and 1/2 to a common denominator. 3/5 = ? {=36/60|18/30} 5/6 = ? {=50/60|25/30} 1/2 = ? {=30/60|15/30}
q: Reduce 2/3, 3/4, 4/5 and 1/2 to a common denominator. 2/3 = ? {=80/120|40/60} 3/4 = ? {=90/120|45/60} 4/5 = ? {=96/120|48/60} 1/2 = ? {=60/120|30/60}
q: Reduce 3/4 and 5/6 to equivalent fractions having the least common denominator. 3/4 = ? {=9/12} 5/6 = ? {=10/12}
sol: The least common denominator is 12. 3/4 = 9/12; 5/6 = 10/12.
q: Reduce 1/2 and 1/4 to the least common denominator. 1/2 = ? {=2/4} 1/4 = ? {=1/4}
q: Reduce 1/2 and 1/6 to the least common denominator. 1/2 = ? {=3/6} 1/6 = ? {=1/6}
q: Reduce 1/3 and 1/6 to the least common denominator. 1/3 = ? {=2/6} 1/6 = ? {=1/6}
q: Reduce 2/3 and 5/6 to the least common denominator. 2/3 = ? {=4/6} 5/6 = ? {=5/6}
q: Reduce 3/4 and 3/8 to the least common denominator. 3/4 = ? {=6/8} 3/8 = ? {=3/8}
q: Reduce 2/3 and 2/9 to the least common denominator. 2/3 = ? {=6/9} 2/9 = ? {=2/9}
q: Reduce 5/6 and 5/8 to the least common denominator. 5/6 = ? {=20/24} 5/8 = ? {=15/24}
q: Reduce 5/6 and 7/9 to the least common denominator. 5/6 = ? {=15/18} 7/9 = ? {=14/18}
q: Reduce 7/8 and 5/12 to the least common denominator. 7/8 = ? {=21/24} 5/12 = ? {=10/24}
q: Reduce 1/2, 1/3 and 1/4 to the least common denominator. 1/2 = ? {=6/12} 1/3 = ? {=4/12} 1/4 = ? {=3/12}
q: Reduce 1/3, 1/4 and 1/6 to the least common denominator. 1/3 = ? {=4/12} 1/4 = ? {=3/12} 1/6 = ? {=2/12}
q: Reduce 2/3, 3/4 and 5/6 to the least common denominator. 2/3 = ? {=8/12} 3/4 = ? {=9/12} 5/6 = ? {=10/12}
q: Reduce 2/3, 3/4 and 3/8 to the least common denominator. 2/3 = ? {=16/24} 3/4 = ? {=18/24} 3/8 = ? {=9/24}
q: Reduce 3/4, 5/6 and 7/8 to the least common denominator. 3/4 = ? {=18/24} 5/6 = ? {=20/24} 7/8 = ? {=21/24}
q: Reduce 2/3, 5/6 and 2/9 to the least common denominator. 2/3 = ? {=12/18} 5/6 = ? {=15/18} 2/9 = ? {=4/18}
q: Reduce 3/4, 4/9 and 5/12 to the least common denominator. 3/4 = ? {=27/36} 4/9 = ? {=16/36} 5/12 = ? {=15/36}
q: Reduce 5/6, 8/9 and 7/12 to the least common denominator. 5/6 = ? {=30/36} 8/9 = ? {=32/36} 7/12 = ? {=21/36}
q: Reduce 1/2, 1/3, 1/4 and 1/6 to the least common denominator. 1/2 = ? {=6/12} 1/3 = ? {=4/12} 1/4 = ? {=3/12} 1/6 = ? {=2/12}
q: Reduce 1/3, 1/5, 1/6 and 1/10 to the least common denominator. 1/3 = ? {=10/30} 1/5 = ? {=6/30} 1/6 = ? {=5/30} 1/10 = ? {=3/30}
q: Reduce 2/3, 3/4, 5/6 and 7/8 to the least common denominator. 2/3 = ? {=16/24} 3/4 = ? {=18/24} 5/6 = ? {=20/24} 7/8 = ? {=21/24}
q: Reduce 1/3, 1/4, 5/9 and 7/12 to the least common denominator. 1/3 = ? {=12/36} 1/4 = ? {=9/36} 5/9 = ? {=20/36} 7/12 = ? {=21/36}
q: Reduce 3/4, 5/6, 7/8 and 8/12 to the least common denominator. 3/4 = ? {=18/24} 5/6 = ? {=20/24} 7/8 = ? {=21/24} 8/12 = ? {=16/24}
q: Reduce 2/5, 4/6, 6/9 and 5/12 to the least common denominator. 2/5 = ? {=72/180} 4/6 = ? {=120/180} 6/9 = ? {=120/180} 5/12 = ? {=75/180}
q: Reduce 1/2, 1/3, 1/4, 1/6 and 1/8 to the least common denominator. 1/2 = ? {=12/24} 1/3 = ? {=8/24} 1/4 = ? {=6/24} 1/6 = ? {=4/24} 1/8 = ? {=3/24}
q: Reduce 2/3, 3/4, 5/6, 7/8 and 11/12 to the least common denominator. 2/3 = ? {=16/24} 3/4 = ? {=18/24} 5/6 = ? {=20/24} 7/8 = ? {=21/24} 11/12 = ? {=22/24}
q: Reduce 1/2, 2/3, 3/4, 4/5, 5/6, 9/10 and 11/12 to the least common denominator. 1/2 = ? {=30/60} 2/3 = ? {=40/60} 3/4 = ? {=45/60} 4/5 = ? {=48/60} 5/6 = ? {=50/60} 9/10 = ? {=54/60} 11/12 = ? {=55/60}

== 30 | Fractions | Adding fractions
q: James divided a melon, giving to his sister 1/2, and to his brother 1/4: what part did he give away? {~1/2 + 1/4}
sol: He gave away 1/2 + 1/4. 1/2 = 2/4; 2/4 + 1/4 = 3/4 of a melon.
q: Thomas gave 3/4 of a dollar for a knife, and 1/2 of a dollar for a ball: how much of a dollar did he give for both? {~3/4 + 1/2}
q: A yard of flannel costs 1/2 of a dollar, and a yard of cloth, 2/3 of a dollar: how much do both cost? {~1/2 + 2/3}
q: I give Mary 1/2, Jane 1/4, and William 1/8 of an orange: how much do I give to all? {~1/2 + 1/4 + 1/8}
q: What is the sum of 1/4 and 1/3? {~1/4 + 1/3}
q: Thomas bought a copy-book for 1/10 of a dollar, and a reader for 1/2 of a dollar: how much did both cost? {~1/10 + 1/2}
q: Bought 1 1/4 yards of muslin at one store, and 2 1/3 yards at another: how many yards did I purchase? {~1_1/4 + 2_1/3}
sol: 1 1/4 = 5/4; 2 1/3 = 7/3. I purchased 5/4 + 7/3 = 3 7/12 yards.
q: I planted 2 1/2 acres of ground in corn, and 8 2/3 acres in oats: how many acres did I plant? {~2_1/2 + 8_2/3}
q: John bought a knife for 1/2 of a dollar, a slate for 1/8 of a dollar, and a book for 5/8 of a dollar: how much did all cost? {~1/2 + 1/8 + 5/8}
q: Add 1/2 and 3/5. {~1/2 + 3/5} 1/2 and 3/8. {~1/2 + 3/8} 2/3 and 3/4. {~2/3 + 3/4}
q: Add 1/3 and 2/5. {~1/3 + 2/5} 1/4 and 1/6. {~1/4 + 1/6} 1/4 and 1/5. {~1/4 + 1/5}
q: Add 1/2 and 1/7. {~1/2 + 1/7} 3/4 and 5/7. {~3/4 + 5/7} 3/4 and 5/8. {~3/4 + 5/8}
q: Add 5/6 and 4/5. {~5/6 + 4/5} 5/9 and 5/8. {~5/9 + 5/8} 5/7 and 5/9. {~5/7 + 5/9}
q: Add 1 3/4 and 2 1/3. {~1_3/4 + 2_1/3} 1/2, 1/3, 1/4, and 1/5. {~1/2 + 1/3 + 1/4 + 1/5}
q: Add 3 2/3 and 4 5/6. {~3_2/3 + 4_5/6}
sol: 3 + 4 = 7, 2/3 + 5/6 = 1 1/2; 7 + 1 1/2 = 8 1/2.
q: Add 4 3/7 and 5 1/3. {~4_3/7 + 5_1/3} 1 1/2, 2 3/4, 4/5, and 6 2/10. {~1_1/2 + 2_3/4 + 4/5 + 6_2/10}
q: Add 5 3/8 and 4 4/9. {~5_3/8 + 4_4/9} 5/6, 3 1/3, 4, and 5 5/8. {~5/6 + 3_1/3 + 4 + 5_5/8}

== 31 | Fractions | Taking away fractions
q: James received 1/2 an orange and Charles, 1/3: how much more did James receive than Charles? {~1/2 - 1/3}
sol: James received more than Charles 1/2 - 1/3. 1/2 = 3/6; 1/3 = 2/6. 3/6 - 2/6 = 1/6 of an orange.
q: If I give to Mary 1/2 of an apple, and to Jane 1/4, how much more will Mary have than Jane? {~1/2 - 1/4}
q: James bought 2 melons; he gave to Lucy half of the first, and to Jane two-thirds of the second: what part of a melon had Jane more than Lucy? {~2/3 - 1/2}
q: If a bushel of wheat cost 1 1/4 dollars, and a bushel of corn, 2/3 of a dollar, how much will the wheat cost more than the corn? {~1_1/4 - 2/3}
q: Joseph bought a quart of chestnuts, and gave 1/2 to his mother and 1/6 to his sister: how much more did he give his mother than his sister? {~1/2 - 1/6}
q: Jane gave 1 3/4 oranges to Mary, and 2 1/3 to Lucy: how much more did she give to Lucy than to Mary? {~2_1/3 - 1_3/4}
sol: 1 3/4 = 7/4; 2 1/3 = 7/3. Jane gave Lucy more than Mary 7/3 - 7/4, or 7/12 of an orange.
q: Take 1/5 from 1/2. {~1/2 - 1/5} 1/4 from 1/3. {~1/3 - 1/4} 1/5 from 1/4. {~1/4 - 1/5}
q: Take 2/9 from 1/2. {~1/2 - 2/9} 1/2 from 3/5. {~3/5 - 1/2} 1/3 from 3/4. {~3/4 - 1/3}
q: Take 1/3 from 3/5. {~3/5 - 1/3} 3/5 from 5/8. {~5/8 - 3/5} 3/7 from 2/3. {~2/3 - 3/7}
q: Take 1/2 from 7/9. {~7/9 - 1/2} 1/3 from 4/5. {~4/5 - 1/3} 1/4 from 3/7. {~3/7 - 1/4}
q: Take 3/5 from 5/7. {~5/7 - 3/5} 5/7 from 3/4. {~3/4 - 5/7} 3/5 from 5/6. {~5/6 - 3/5}
q: Take 1/3 from 3/8. {~3/8 - 1/3} 5/6 from 6/7. {~6/7 - 5/6} 1/3 from 2 1/2. {~2_1/2 - 1/3}
q: Take 2 2/3 from 5 1/6. {~5_1/6 - 2_2/3}
sol: We can not subtract 2/3 from 1/6; but we can take 1 from 5, and can subtract 2/3 from 1 1/6. 1 1/6 - 2/3 = 1/2, 4 - 2 = 2; 2 + 1/2 = 2 1/2.
q: Take 3 1/2 from 7 3/5. {~7_3/5 - 3_1/2} 4 1/4 from 8 5/6. {~8_5/6 - 4_1/4}
q: Take 5 2/7 from 7 2/3. {~7_2/3 - 5_2/7} 6 4/9 from 8 1/2. {~8_1/2 - 6_4/9} 7 4/5 from 9 2/3. {~9_2/3 - 7_4/5}

== 32 | Fractions | What is left?
q: Mary divided a quart of pecans, giving Ann 1/3, and Jane 1/4 of them: what part of the quart had she left? {~1 - 1/3 - 1/4}
sol: Mary gave away 1/3 + 1/4 = 7/12 of a quart; she had left 12/12 - 7/12 = 5/12 of a quart.
q: After taking away 1/2 and 1/3 of an apple, what will be left? {~1 - 1/2 - 1/3}
q: Thomas wishes to divide an orange, and give Ann 1/2, and Lucy 2/5: how much will he have left? {~1 - 1/2 - 2/5}
q: A farmer sows 1/2 of a field in rye, 1/6 in barley, and the remainder in oats: how much does he sow in oats? {~1 - 1/2 - 1/6}
q: A man having 72 miles to travel, went 1/3 the distance the first day, 2/9 the second, and the remainder the third day: what part did he travel the last day, {~1 - 1/3 - 2/9} and how many miles? {32}
q: David bought a pound of figs: he gave 1/3 to his mother, 1/4 to his sister, and 1/6 to his brother: what part had he left? {~1 - 1/3 - 1/4 - 1/6}
q: A farmer had 1 1/2 bushels of wheat: he gave to one poor man 1/2 of a bushel, and to another 1/3 of a bushel: how much wheat was left? {~1_1/2 - 1/2 - 1/3}
q: James had 7/8 of a pound of raisins: he gave to his brother half of a pound, and to his sister 1/4 of a pound: how much had he left? {~7/8 - 1/2 - 1/4}
q: A lady bought 3 1/3 yards of muslin at one store, and 2 1/4 yards at another: after using 1 1/2 yards, how much had she left? {~3_1/3 + 2_1/4 - 1_1/2}
q: William's father gave him 5/8 of a dollar: he gave to a poor person 1/3 of a dollar; for apples, 1/16; and for a book, 1/4: what part of a dollar had he left? {~5/8 - 1/3 - 1/16 - 1/4}
q: James' mother gave him a book: he read the first day 1/5; the second, 1/4; the third, 1/2; and the fourth, the remainder: what part did he read the fourth day? {~1 - 1/5 - 1/4 - 1/2}
q: A farmer has a flock of 84 sheep in four fields: the first contains 1/7; the second, 1/2; and the third, 1/4 of them: how many does the fourth field contain? {~84 * (1 - 1/7 - 1/2 - 1/4)}
q: Daniel spends 1/3 of his time in sleep, 1/4 of it at school, 1/12 in reading, and 1/24 in learning music: what part of his time is not employed? {~1 - 1/3 - 1/4 - 1/12 - 1/24}
q: A pole is standing in a pond; 1/2 of it is in the air, and 1/3 in the water: what part is in the earth? {~1 - 1/2 - 1/3}
q: A student devotes 1/4 of his time to sleep, 1/3 to study, 1/24 to reading, 1/8 to exercise, and 1/12 to deeds of charity: what part of his time is unemployed? {~1 - 1/4 - 1/3 - 1/24 - 1/8 - 1/12}
q: After spending 1/2 and 1/3 of my money, and losing 1/12, I had $8 remaining: how much had I at first? {~8 / (1 - 1/2 - 1/3 - 1/12)}

== 33 | Fractions | Times a fraction
q: A mother gave each of her 3 children 1/2 an orange: how many oranges did it take? {~3 * 1/2}
sol: It took 3 times 1/2 an orange, which are 3/2. 3/2 = 1 1/2 oranges.
q: John fed 5 horses, giving to each 1/2 a peck of oats: how many pecks did it take? {~5 * 1/2}
q: James gave 1/3 of an orange to each of his 4 sisters: how many did it take? {~4 * 1/3}
q: John gave 2/3 of a pine-apple to each of his 2 brothers: how many did he give to both? {~2 * 2/3}
q: What are 4 times 2/3? {~4 * 2/3}
sol: 4 times 2/3 are 8/3 = 2 2/3.
q: Thomas gave 1/4 of an apple to each of his 6 playmates: how many apples did it take? {~6 * 1/4}
q: Charles gave 3/4 of a pint of chestnuts to each of his 2 brothers: how many pints did it take? {~2 * 3/4}
q: Mary gave 3/4 of an orange to each of her 3 brothers: how many oranges did it take? {~3 * 3/4}
q: What are 6 times 3/4? {~6 * 3/4} 7 times 3/4? {~7 * 3/4} 8 times 3/4? {~8 * 3/4}
q: What are 3 times 1/5? {~3 * 1/5} 5 times 2/5? {~5 * 2/5} 6 times 3/5? {~6 * 3/5}
q: What are 3 times 1/7? {~3 * 1/7} 4 times 2/7? {~4 * 2/7} 5 times 4/7? {~5 * 4/7}
q: What are 5 times 1/8? {~5 * 1/8} 2 times 3/8? {~2 * 3/8} 4 times 7/8? {~4 * 7/8}
q: What are 2 times 1/9? {~2 * 1/9} 4 times 2/9? {~4 * 2/9} 5 times 4/9? {~5 * 4/9}
q: What are 8 times 3/9? {~8 * 3/9} 6 times 6/9? {~6 * 6/9} 7 times 8/9? {~7 * 8/9}
q: What are 5 times 7/6? {~5 * 7/6} 8 times 3/5? {~8 * 3/5} 9 times 2/5? {~9 * 2/5}
q: What are 7 times 5/8? {~7 * 5/8} 6 times 7/9? {~6 * 7/9} 8 times 3/7? {~8 * 3/7}
q: What are 3 times 5/4? {~3 * 5/4} 4 times 6/5? {~4 * 6/5} 6 times 8/7? {~6 * 8/7}
q: What are 7 times 5/3? {~7 * 5/3} 8 times 5/2? {~8 * 5/2} 9 times 4/3? {~9 * 4/3}

== 34 | Fractions | One, then many
q: If 3 bushels of corn cost $1, what will 2 bushels cost? {~2/3}
sol: 1 bushel will cost 1/3 of a dollar; then, 2 bushels will cost 2 times 1/3 = 2/3 of a dollar.
q: If 3 bushels of wheat cost $2, what will 2 bushels cost? {~2 * 2/3}
q: If 3 barrels of cider cost $8, what will 2 barrels cost? {~2 * 8/3}
q: If 4 barrels of apples cost $9, what will 2 barrels cost? {~2 * 9/4}
q: If 5 apples cost 2 cents, what will 4 apples cost? {~4 * 2/5}
q: James bought 3 lemons for 7 cents, how much would 2 lemons cost? {~2 * 7/3}
q: William bought 5 quarts of chestnuts for 18 cents; at that rate, what did 4 quarts cost? {~4 * 18/5}
q: If 4 pounds of cheese sell for 30 cents, what should 3 pounds sell for? {~3 * 30/4}
q: What are 3/4 of 9? {~3/4 * 9}
sol: 1/4 of 9 is 9/4; then, 3/4 of 9 are 3 times 9/4, which are 27/4 = 6 3/4.
q: What are 4/5 of 6? {~4/5 * 6} 7? {~4/5 * 7} 8? {~4/5 * 8} 9? {~4/5 * 9} 11? {~4/5 * 11}
q: What are 5/6 of 5? {~5/6 * 5} 7? {~5/6 * 7} 10? {~5/6 * 10} 11? {~5/6 * 11} 12? {~5/6 * 12}
q: What are 6/7 of 8? {~6/7 * 8} 9? {~6/7 * 9} 10? {~6/7 * 10} 11? {~6/7 * 11} 12? {~6/7 * 12}
q: What are 7/8 of 5? {~7/8 * 5} 7? {~7/8 * 7} 9? {~7/8 * 9} 11? {~7/8 * 11} 12? {~7/8 * 12}
q: What are 8/9 of 6? {~8/9 * 6} 7? {~8/9 * 7} 8? {~8/9 * 8} 10? {~8/9 * 10} 12? {~8/9 * 12}
q: What are 9/10 of 6? {~9/10 * 6} 8? {~9/10 * 8} 9? {~9/10 * 9} 11? {~9/10 * 11} 12? {~9/10 * 12}
q: What are 10/11 of 3? {~10/11 * 3} 5? {~10/11 * 5} 8? {~10/11 * 8} 9? {~10/11 * 9} 12? {~10/11 * 12}
q: What are 11/12 of 7? {~11/12 * 7} 8? {~11/12 * 8} 9? {~11/12 * 9} 10? {~11/12 * 10} 11? {~11/12 * 11}
q: If 4 men perform a piece of work in 8 days, how many days will it take 5 men? {~4 * 8 / 5}
sol: It will take 1 man 4 times 8 days = 32 days; then, it will take 5 men 1/5 of 32 days = 6 2/5 days.
q: If one barrel of flour serve 8 persons 20 days, how many days will it last 11 persons? {~8 * 20 / 11}
q: If 7 men can do a piece of work in 5 days, how many days will it require 8 men? {~7 * 5 / 8}
q: If 2 men build a wall in 12 days, how many days will it take 7 men? {~2 * 12 / 7}
q: If it require 11 days, of 8 hours each, to do a certain work, how many days, of 10 hours each, will be required to accomplish the same? {~11 * 8 / 10}
q: A man paid 37 cents for riding 8 miles: at the same rate, how many cents will it cost to ride 11 miles? {~37 * 11 / 8}
q: If 2 pipes of a certain size empty a cistern in 17 minutes: in how many minutes will 3 pipes empty it? {~2 * 17 / 3}
q: If 18 bushels of oats last 5 horses one week, how many bushels will 7 horses require? {~18 * 7 / 5}
q: If a laborer receive 5 bushels of wheat for 7 days' work, how many bushels should he receive for 11 days? {~5 * 11 / 7}
q: If a carpenter earn $8 in 5 days, how many dollars will he earn in 9 days? {~8 * 9 / 5}
q: A pole, 18 feet long, is two-sevenths in the earth, the rest in the air: how many feet are in the earth? {~2/7 * 18} How many feet in the air? {~5/7 * 18}
q: Three men found a bag containing $15: A got 2/5, B 1/3, and C the rest: what was A's share? {6} B's share? {5} C's share? {4}
q: If 3 ounces of snuff cost 36 cents, how many cents should be charged for 2/3 of an ounce? {8}
q: A watchmaker sold a watch for $18, and lost 2/5 of its value: how much did he lose? {12}
q: A watchmaker sold a watch for $45, and gained 2/7 of its cost: what was its cost? {35}

== 35 | Fractions | Times a mixed number
q: William gave 1 1/2 oranges to each of his 2 sisters: how many oranges did it take? {~2 * 1_1/2}
sol: 1 1/2 = 3/2. It took 2 times 3/2 oranges, which are 6/2 = 3 oranges.
q: How many are 3 times 2 1/2? {~3 * 2_1/2}
sol: 2 1/2 = 5/2. 3 times 5/2 are 15/2 = 7 1/2.
q: If 1 bushel of wheat cost 1 1/3 dollars, what will 2 bushels cost? {~2 * 1_1/3}
q: How many are 3 times 1 1/3? {~3 * 1_1/3} 2 times 2 2/3? {~2 * 2_2/3}
q: How many are 3 times 3 1/3? {~3 * 3_1/3} 4 times 4 1/2? {~4 * 4_1/2}
q: How many are 5 times 2 2/3? {~5 * 2_2/3} 6 times 3 2/3? {~6 * 3_2/3}
q: How many are 8 times 3 1/3? {~8 * 3_1/3} 9 times 4 2/3? {~9 * 4_2/3}
q: If 1 bushel of barley cost 1 1/4 dollars, what will 3 bushels cost? {~3 * 1_1/4} 4 bushels? {~4 * 1_1/4}
q: How many are 5 times 1 1/4? {~5 * 1_1/4} 6 times 1 1/4? {~6 * 1_1/4}
q: How many are 2 times 1 3/4? {~2 * 1_3/4} 3 times 2 1/4? {~3 * 2_1/4}
q: How many are 4 times 3 1/4? {~4 * 3_1/4} 5 times 3 3/4? {~5 * 3_3/4}
q: How many are 6 times 3 1/4? {~6 * 3_1/4} 8 times 3 3/4? {~8 * 3_3/4}
q: How many are 7 times 2 1/4? {~7 * 2_1/4} 9 times 2 3/4? {~9 * 2_3/4}
q: How many are 10 times 1 3/4? {~10 * 1_3/4} 10 times 3 1/4? {~10 * 3_1/4}
q: How many are 12 times 3 3/4? {~12 * 3_3/4}
sol: 12 times 3 = 36, 12 times 3/4 are 36/4 = 9; 36 + 9 = 45.
q: If a family consume 3 1/5 barrels of flour in one month, how many barrels will they require for 3 months? {~3 * 3_1/5}

q: How many are 4 times 3 2/5? {~4 * 3_2/5} 5 times 3 3/5? {~5 * 3_3/5}
q: How many are 2 times 6 3/5? {~2 * 6_3/5} 3 times 2 4/5? {~3 * 2_4/5}
q: How many are 6 times 4 1/5? {~6 * 4_1/5} 6 times 3 4/5? {~6 * 3_4/5}
q: How many are 7 times 4 2/5? {~7 * 4_2/5} 8 times 3 2/5? {~8 * 3_2/5}
q: How many are 9 times 1 4/5? {~9 * 1_4/5} 9 times 3 1/5? {~9 * 3_1/5}
q: Three times 4 1/2 are how many? {~3 * 4_1/2}
q: Four times 4 3/4 are how many? {~4 * 4_3/4}
q: Five times 4 2/5 are how many? {~5 * 4_2/5}
q: Four times 6 1/3 are how many? {~4 * 6_1/3}
q: Five times 6 1/2 are how many? {~5 * 6_1/2}
q: Six times 6 2/3 are how many? {~6 * 6_2/3}
q: Seven times 6 5/6 are how many? {~7 * 6_5/6}
q: Four times 7 3/7 are how many? {~4 * 7_3/7}
q: Five times 7 4/7 are how many? {~5 * 7_4/7}
q: Six times 7 6/7 are how many? {~6 * 7_6/7}
q: Four times 8 3/8 are how many? {~4 * 8_3/8}
q: Five times 8 1/2 are how many? {~5 * 8_1/2}
q: Six times 8 7/8 are how many? {~6 * 8_7/8}
q: Three times 9 5/9 are how many? {~3 * 9_5/9}
q: Five times 9 2/3 are how many? {~5 * 9_2/3}
q: Seven times 9 8/9 are how many? {~7 * 9_8/9}
q: Two times 10 3/10 are how many? {~2 * 10_3/10}
q: Five times 10 3/5 are how many? {~5 * 10_3/5}
q: Six times 10 4/5 are how many? {~6 * 10_4/5}
q: Nine times 10 7/10 are how many? {~9 * 10_7/10}
q: Ten times 9 8/9 are how many? {~10 * 9_8/9}
q: Twelve times 11 9/11 are how many? {~12 * 11_9/11}
q: How many are 9 5/8 multiplied by 6? {~9_5/8 * 6}
q: How many are 7 3/5 multiplied by 7? {~7_3/5 * 7}
q: How many are 4 10/11 multiplied by 11? {~4_10/11 * 11}
q: How many are 10 5/6 multiplied by 11? {~10_5/6 * 11}
q: How many are 12 8/9 multiplied by 10? {~12_8/9 * 10}

== 36 | Fractions | Paying in goods
q: Bought 5 boxes of raisins, at $4 4/5 a box; paid for them with flour, at $6 a barrel: how many barrels did it take? {4}
sol: The raisins cost 5 times $4 4/5 = $24; then, it took as many barrels of flour to pay for them as $6 are contained times in $24, which are 4.
q: Bought 6 gallons of wine, for $4 2/3 a gallon, and paid for it with raisins, at $5 a box: how many boxes did it take? {~6 * 4_2/3 / 5}
q: Bought 7 kegs of tobacco, for $5 4/7 a keg, and paid for it with paper, at $6 a ream: how many reams did it take? {~7 * 5_4/7 / 6}
q: Five times 5 3/5 are how many times 6? {~5 * 5_3/5 / 6}
sol: 5 times 5 3/5 = 28. 28 / 6 = 4 2/3.
q: Four times 4 3/4 are how many times 3? {~4 * 4_3/4 / 3} 5? {~4 * 4_3/4 / 5} 6? {~4 * 4_3/4 / 6} 8? {~4 * 4_3/4 / 8} 9? {~4 * 4_3/4 / 9} 10? {~4 * 4_3/4 / 10}
q: Six times 6 5/6 are how many times 4? {~6 * 6_5/6 / 4} 5? {~6 * 6_5/6 / 5} 7? {~6 * 6_5/6 / 7} 8? {~6 * 6_5/6 / 8} 9? {~6 * 6_5/6 / 9} 10? {~6 * 6_5/6 / 10}
q: Five times 5 2/5 are how many times 4? {~5 * 5_2/5 / 4} 6? {~5 * 5_2/5 / 6} 8? {~5 * 5_2/5 / 8} 9? {~5 * 5_2/5 / 9} 10? {~5 * 5_2/5 / 10}
q: Eight times 8 1/8 are how many times 5? {~8 * 8_1/8 / 5} 6? {~8 * 8_1/8 / 6} 7? {~8 * 8_1/8 / 7} 9? {~8 * 8_1/8 / 9} 10? {~8 * 8_1/8 / 10}
q: Seven times 6 2/7 are how many times 5? {~7 * 6_2/7 / 5} 8? {~7 * 6_2/7 / 8} 9? {~7 * 6_2/7 / 9} 10? {~7 * 6_2/7 / 10}
q: Ten times 5 2/5 are how many times 6? {~10 * 5_2/5 / 6} 7? {~10 * 5_2/5 / 7} 8? {~10 * 5_2/5 / 8} 9? {~10 * 5_2/5 / 9} 10? {~10 * 5_2/5 / 10}
q: Eight times 8 3/8 are how many times 6? {~8 * 8_3/8 / 6} 7? {~8 * 8_3/8 / 7} 9? {~8 * 8_3/8 / 9} 10? {~8 * 8_3/8 / 10} 11? {~8 * 8_3/8 / 11}
q: Seven times 7 4/7 are how many times 5? {~7 * 7_4/7 / 5} 6? {~7 * 7_4/7 / 6} 8? {~7 * 7_4/7 / 8} 9? {~7 * 7_4/7 / 9} 10? {~7 * 7_4/7 / 10}
q: Five times 5 4/5 are how many times 6? {~5 * 5_4/5 / 6} 7? {~5 * 5_4/5 / 7} 8? {~5 * 5_4/5 / 8} 9? {~5 * 5_4/5 / 9} 10? {~5 * 5_4/5 / 10}
q: Nine times 6 1/3 are how many times 5? {~9 * 6_1/3 / 5} 7? {~9 * 6_1/3 / 7} 8? {~9 * 6_1/3 / 8} 10? {~9 * 6_1/3 / 10} 11? {~9 * 6_1/3 / 11}
q: Seven times 7 3/7 are how many times 5? {~7 * 7_3/7 / 5} 6? {~7 * 7_3/7 / 6} 9? {~7 * 7_3/7 / 9} 10? {~7 * 7_3/7 / 10} 12? {~7 * 7_3/7 / 12}
q: Bought 4 2/3 yards of cloth, at $3 a yard, and paid for it with cheese, at $7 a hundred-weight: how many hundred-weights did it take? {2}
sol: The cloth cost $3 x 4 2/3 = $14; it took as many hundred-weights as $7 are contained times in $14, which are 2.
q: Bought 4 4/5 pounds of nails, at 5 cents a pound, and paid for them with eggs, at 12 cents a dozen: how many dozen did it take? {~4_4/5 * 5 / 12}
q: Bought 7 5/7 pounds of sugar, at 7 cents a pound, and paid for it with chickens, at 27 cents each: how many did it take? {~7_5/7 * 7 / 27}
q: Bought 9 2/7 pounds of sugar, at 7 cents a pound, and paid for it with eggs, at 13 cents a dozen: how many dozen did it take? {~9_2/7 * 7 / 13}
q: How many pounds of rice, at 7 cents a pound, can I get for 8 2/9 yards of calico, at 9 cents a yard? {~8_2/9 * 9 / 7}
q: How many barrels of flour, at $6 a barrel, must be given in exchange for 4 5/7 yards of cloth, at $7 a yard? {~4_5/7 * 7 / 6}
q: Bought 5 3/7 pounds of sugar, at 7 cents a pound, and paid for it with raisins, at 6 cents a pound: how many pounds did it take? {~5_3/7 * 7 / 6}
q: How many dozen eggs, at 12 cents a dozen, will pay for 10 10/11 pounds of sugar, at 11 cents a pound? {~10_10/11 * 11 / 12}

== 37 | Fractions | A part of a part
q: Mary, having 1/2 an orange, gave her brother 1/2 of what she had: what part of an orange did she give him? {~1/2 * 1/2}
sol: She gave to her brother 1/2 of 1/2 an orange, which is 1/4 of an orange.
q: James divided 1/3 of an apple equally between his two brothers: what part did each receive? {~1/3 / 2}
q: If 1/4 of an orange is divided into 2 equal parts, what is 1 of the parts called? {=1/8}
q: If 1/3 of an apple be cut into 3 equal parts, what part of the apple will each piece be? {~1/3 / 3}
q: If 1/2 of an apple be divided into 5 equal parts, what is each part called? {=1/10}
q: If you divide an orange into 4 equal parts, and cut each part into 3 equal pieces, what will 1 piece be called? {=1/12}
q: What single fraction equals 1/2 of 1/7? {~1/2 * 1/7}
sol: 1/2 of 1/7 = 1/14.
q: What single fraction equals 1/3 of 1/5? {~1/3 * 1/5} 1/4 of 1/4? {~1/4 * 1/4} 1/3 of 1/6? {~1/3 * 1/6} 1/4 of 1/5? {~1/4 * 1/5} 1/3 of 1/7? {~1/3 * 1/7}
q: What single fraction equals 1/4 of 1/6? {~1/4 * 1/6} 1/3 of 1/8? {~1/3 * 1/8} 1/5 of 1/5? {~1/5 * 1/5} 1/3 of 1/9? {~1/3 * 1/9} 1/4 of 1/7? {~1/4 * 1/7} 1/5 of 1/6? {~1/5 * 1/6}
q: What single fraction equals 1/4 of 1/8? {~1/4 * 1/8} 1/5 of 1/7? {~1/5 * 1/7} 1/6 of 1/6? {~1/6 * 1/6} 1/7 of 1/7? {~1/7 * 1/7} 1/8 of 1/8? {~1/8 * 1/8} 1/9 of 1/9? {~1/9 * 1/9}
q: Thomas has 3/4 of an apple, and wishes to give his brother 1/2 of what he has: what part of the whole apple must he give him? {~1/2 * 3/4}
sol: He must give him 1/2 of 3/4 of an apple; 1/2 of 1/4 = 1/8; then 1/2 of 3/4 is 3 times 1/8 = 3/8.
q: Daniel has 3/5 of a melon to divide equally between his brother and sister: what part of the whole will each receive? {~3/5 / 2}
q: What is 1/3 of 2/5? {~1/3 * 2/5}
sol: 1/3 of 1/5 = 1/15; then, 1/3 of 2/5 = 2/15.
q: What is 1/3 of 5/6? {~1/3 * 5/6} 1/4 of 3/4? {~1/4 * 3/4} 1/5 of 5/6? {~1/5 * 5/6} 1/6 of 3/4? {~1/6 * 3/4}
q: What is 1/6 of 4/7? {~1/6 * 4/7} 1/7 of 5/8? {~1/7 * 5/8} 1/9 of 5/7? {~1/9 * 5/7} 1/7 of 4/5? {~1/7 * 4/5}
q: What is 1/8 of 4/9? {~1/8 * 4/9} 1/9 of 5/9? {~1/9 * 5/9} 1/10 of 7/9? {~1/10 * 7/9} 1/11 of 8/9? {~1/11 * 8/9}
q: Edward has 4/5 of a melon, and gives his sister 2/3 of what he has: what part of the melon does she receive? {~2/3 * 4/5}
sol: She receives 2/3 of 4/5 of a melon. 1/3 of 4/5 is 4/15; then, 2/3 of 4/5 are 2 times 4/15 = 8/15.
q: What are 2/3 of 3/4? {~2/3 * 3/4}
sol: 1/3 of 3/4 is 1/4; then, 2/3 of 3/4 are 2/4 = 1/2.
q: What are 2/3 of 3/5? {~2/3 * 3/5} 3/4 of 6/5? {~3/4 * 6/5} 2/3 of 5/6? {~2/3 * 5/6} 3/4 of 2/7? {~3/4 * 2/7}
q: What are 3/5 of 3/8? {~3/5 * 3/8} 2/5 of 3/7? {~2/5 * 3/7} 5/6 of 4/7? {~5/6 * 4/7} 2/3 of 7/10? {~2/3 * 7/10}
q: What are 3/5 of 8/9? {~3/5 * 8/9} 2/7 of 5/11? {~2/7 * 5/11} 3/8 of 5/7? {~3/8 * 5/7} 5/7 of 4/9? {~5/7 * 4/9}
q: What are 3/2 of 5/6? {~3/2 * 5/6} 6/5 of 2/9? {~6/5 * 2/9} 9/10 of 7/6? {~9/10 * 7/6} 7/8 of 4/3? {~7/8 * 4/3}
q: What are 9/8 of 7/5? {~9/8 * 7/5} 8/3 of 11/7? {~8/3 * 11/7} 11/12 of 5/6? {~11/12 * 5/6} 6/5 of 12/11? {~6/5 * 12/11}
q: A person, owning 3/4 of a ship, sold 5/6 of his share: what part of the ship did he sell? {~5/6 * 3/4}
q: A banker, owning 4/5 of the entire stock of a bank, disposed of 3/7 of his share: what part of the stock did he sell? {~3/7 * 4/5}
q: If a man sell 2/9 of 7/10 of his stock of merchandise, what amount does he sell? {~2/9 * 7/10}
q: I buy 8/11 of 2/3 of the shares in a corporation, how much do I buy? {~8/11 * 2/3}
q: 4/3 of 6/7 of 5/12 are how many? {~4/3 * 6/7 * 5/12}

== 38 | Fractions | A part of a mixed number
q: If 1 yard of cloth is worth 2 1/2 bushels of wheat, what is 1/2 a yard worth? {~1/2 * 2_1/2}
sol: 2 1/2 = 5/2; 1/2 of 5/2 = 5/4, or 1 1/4 bushels.
q: What single fraction will represent 1/3 of 2 1/2? {~1/3 * 2_1/2} 1/2 of 1 1/4? {~1/2 * 1_1/4} 1/3 of 1 3/4? {~1/3 * 1_3/4} 1/4 of 2 1/5? {~1/4 * 2_1/5} 1/5 of 3 1/4? {~1/5 * 3_1/4}
q: What single fraction will represent 1/6 of 4 2/3? {~1/6 * 4_2/3} 1/7 of 5 1/6? {~1/7 * 5_1/6} 2/3 of 1 1/2? {~2/3 * 1_1/2} 3/4 of 1 2/3? {~3/4 * 1_2/3} 2/7 of 1 1/3? {~2/7 * 1_1/3}
q: What single fraction will represent 2/5 of 4 1/3? {~2/5 * 4_1/3} 3/5 of 2 2/7? {~3/5 * 2_2/7} 5/8 of 3 1/2? {~5/8 * 3_1/2} 3/8 of 2 1/8? {~3/8 * 2_1/8} 3/7 of 4 5/9? {~3/7 * 4_5/9}
q: If 2 yards of cloth cost 1 1/3 dollars, how many dollars will 3 yards cost? {~1_1/3 / 2 * 3}
q: If 3 yards of cloth cost 5 1/2 dollars, how many dollars will 2 yards cost? {~5_1/2 / 3 * 2}
q: If 4 gallons of molasses cost 3 2/3 dollars, how many dollars will 3 gallons cost? {~3_2/3 / 4 * 3}
q: If 7 pounds of sugar cost 1 1/7 dollars, how much of a dollar will 4 pounds cost? {~1_1/7 / 7 * 4}
q: If 4 pounds of butter cost 1 1/4 dollars, how many dollars will 7 pounds cost? {~1_1/4 / 4 * 7}
q: If 7 yards of cloth cost 5 3/5 dollars, what will be the cost of 3 yards? {~5_3/5 / 7 * 3} Of 4 yards? {~5_3/5 / 7 * 4}
q: If 2 barrels of cider cost 4 2/3 dollars, how many dollars will 5 barrels cost? {~4_2/3 / 2 * 5}
q: If 5 gallons of oil cost 2 2/5 dollars, how many dollars will 7 gallons cost? {~2_2/5 / 5 * 7}
q: If 3 bottles of wine cost 2 1/3 dollars, what will be the cost of 8 bottles? {~2_1/3 / 3 * 8} Of 10 bottles? {~2_1/3 / 3 * 10}
q: A man can perform a piece of work in 3 2/3 days, of 10 hours each: how many days, of 7 hours each, will it take? {~3_2/3 * 10 / 7}
q: If a man can do a piece of work in 14 2/5 days, working 5 hours a day, how many days will it take, working 8 hours a day? {~14_2/5 * 5 / 8}

== 39 | Fractions | Finding the whole from a part
q: A jockey, by selling a horse for $45, gained 1/8 of the cost: what was the cost? {40}
sol: $45 are 8/8 + 1/8 = 9/8 of the cost; then, 1/8 of the cost is 1/9 of $45 = $5, and the cost is 8 times $5 = $40.
q: James gave his brother 4 marbles, which were 2/3 of all he had: how many had he? {~4 / (2/3)}
q: Thomas sold a knife for 15 cents, which was 3/5 of its cost: how many cents did it cost? {~15 / (3/5)}
q: William lost 6 marbles, which were 3/8 of all he had: how many had he? {~6 / (3/8)}
q: I sold a horse for $42, which was 6/5 of its cost: what was its cost? {~42 / (6/5)}
q: A grocer sold a lot of flour for $40, which was 5/4 of the cost: what was the cost? {~40 / (5/4)}
q: Sold a horse for $56, which was 8/5 of the cost: what was the cost? {~56 / (8/5)}
q: A man sold a watch for $28, which was 4/3 of its cost: what was its cost? {~28 / (4/3)}
q: A man sold a pony for $45, which was 5/3 of its cost: what was the cost? {~45 / (5/3)}
q: A man purchased a horse: after paying 3/5 of the price, he owed $20: what was the price of the horse? {~20 / (2/5)} How much money did he pay? {~20 / (2/5) * 3/5}
q: Alexander sold a book for 25 cents, and lost 2/7 of the cost: what was the cost? {~25 / (5/7)}
q: In an orchard there are 12 cherry-trees: the remaining 5/7 of the orchard are apple-trees: how many trees are there in the orchard? {~12 / (2/7)}
q: Four-fifths of a stick are under water, and 6 feet are out of water: how long is the stick? {~6 / (1/5)}
q: There is a pole, 3/5 of which are in the earth, and 12 feet are in the air: how long is the pole? {~12 / (2/5)}
q: A piece of timber stands 5/7 in the air, and 5 feet in the ground: how long is the entire piece? {~5 / (2/7)}
q: 1/5 of a pole is in the mud, 2/5 are in the water, and 14 feet in the air: how long is the pole? {~14 / (2/5)}
q: A man gave to some poor persons $4, which was 2/5 of his money: how much had he left? {~4 / (2/5) - 4}
q: At $8 a yard, 1/5 of the cost of a piece of cloth was lost: what was the cost a yard? {~8 / (4/5)}
q: If 8/5 of the cost of a horse were $64, and it was bought with flour, at $4 a barrel: how many barrels did it take? {~64 / (8/5) / 4}
q: If 7/9 of a cask of wine cost $42, how many barrels of flour, at $8 a barrel, will pay for a whole cask? {~42 / (7/9) / 8}
q: If 4/5 of a yard of muslin cost 8 cents, how many yards can be purchased for 25 cents? {~25 / (8 / (4/5))}
q: If 6/7 of a yard of cloth cost $4, how many yards can be purchased for $12? {~12 / (4 / (6/7))}
q: By selling 5 yards of cloth for $12, I gained 1/3 of the cost: what did I pay per yard? {~12 / (4/3) / 5}
q: If 3/4 of a pound of raisins cost 9 cents, how many lemons, at 2 cents each, will pay for a pound? {~9 / (3/4) / 2}
q: If 2/3 of a pound of coffee cost 16 cents, how many oranges, at 4 cents each, will pay for one pound? {~16 / (2/3) / 4}
q: If 7/8 of a barrel of wine cost $42, how many barrels of cider, at $6 each, will pay for a barrel of wine? {~42 / (7/8) / 6}
q: If 3/5 of a barrel of sugar cost $12, how many barrels of flour, at $10 a barrel, will pay for a barrel of sugar? {~12 / (3/5) / 10}
q: Sold a horse for $50, which was 5/8 of his cost: paid for him with cloth, at $4 a yard: how many yards did I give? {20}
sol: One eighth of the cost was 1/5 of $50, which is $10; then 8/8 are 8 times $10, which is $80. It would take as many yards as $4 are contained times in $80, which are 20.

== 40 | Fractions | Part of a number, how many times
q: 12 is 4/7 of how many times 5? {~12 / (4/7) / 5}
sol: 12 is 4/7 of 21; 21 / 5 = 4 1/5.
q: 18 is 3/8 of how many times 9? {~18 / (3/8) / 9}
q: 16 is 2/7 of how many times 9? {~16 / (2/7) / 9}
q: 36 is 4/7 of how many times 8? {~36 / (4/7) / 8}
q: 45 is 5/9 of how many times 7? {~45 / (5/9) / 7}
q: 24 is 4/3 of how many times 5? {~24 / (4/3) / 5}
q: 72 is 8/5 of how many times 7? {~72 / (8/5) / 7}
q: 81 is 9/4 of how many times 3? {~81 / (9/4) / 3}
q: 50 is 10/7 of how many times 4? {~50 / (10/7) / 4}
q: 63 is 7/6 of how many times 5? {~63 / (7/6) / 5}
q: 56 is 8/3 of how many times 7? {~56 / (8/3) / 7}
q: A man, having 12 bushels of grain, divided 5/6 of it among 3 poor persons equally: how many bushels did each receive? {~5/6 * 12 / 3}
sol: 5/6 of 12 bushels are 10 bushels. Each person received 1/3 of 10 bushels = 3 1/3 bushels.
q: A boy, having 25 apples, kept 1/5 himself, and divided the other 4/5 equally among 6 companions: how many did each receive? {~4/5 * 25 / 6}
q: 3/4 of 24 are how many times 9? {~3/4 * 24 / 9}
sol: 3/4 of 24 = 18; 18 / 9 = 2.
q: 7/4 of 24 are how many times 8? {~7/4 * 24 / 8}
q: 8/3 of 18 are how many times 6? {~8/3 * 18 / 6}
q: 7/3 of 27 are how many times 10? {~7/3 * 27 / 10}
q: 3/5 of 60 are how many times 7? {~3/5 * 60 / 7}
q: 5/6 of 66 are how many times 8? {~5/6 * 66 / 8}
q: 5/8 of 48 are how many times 9? {~5/8 * 48 / 9}
q: 3/7 of 56 are how many times 9? {~3/7 * 56 / 9}
q: 9/7 of 63 are how many times 10? {~9/7 * 63 / 10}
q: 5/8 of 64 are how many times 6? {~5/8 * 64 / 6}
q: 5/6 of 40 are how many times 7? {~5/6 * 40 / 7}
q: 11/7 of 49 are how many times 8? {~11/7 * 49 / 8}
q: 5/6 of 54 are how many times 7? {~5/6 * 54 / 7}
q: 10/9 of 63 are how many times 8? {~10/9 * 63 / 8}
q: 8/9 of 54 are how many times 5? {~8/9 * 54 / 5}
q: 9/7 of 42 are how many times 8? {~9/7 * 42 / 8}
q: 7/11 of 55 are how many times 6? {~7/11 * 55 / 6}
q: 3/4 of 72 are how many times 10? {~3/4 * 72 / 10}
q: 2/3 of 96 are how many times 11? {~2/3 * 96 / 11}

== 41 | Fractions | Dividing fractions
q: At 1/2 of a dollar a yard, how much cloth can be bought for 1/3 of a dollar? {~(1/3) / (1/2)}
sol: For $1, 2 times 1 yard = 2 yards can be bought; then, for 1/3 of a dollar, 1/3 of 2 yards = 2/3 of a yard can be bought.
q: At 1/3 of a dollar a yard, how much gingham can be purchased for 1/4 of a dollar? {~(1/4) / (1/3)}
q: At 1/2 of a dollar a yard, how much alpaca can be purchased for 1/5 of a dollar? {~(1/5) / (1/2)}
q: At 1/3 of a dollar a bushel, how much corn can be bought for 1/5 of a dollar? {~(1/5) / (1/3)}
q: At 2/3 of a dollar a yard, how much cloth can be purchased for 3/4 of a dollar? {~(3/4) / (2/3)}
sol: For 1/3 of a dollar, 1/2 a yard can be purchased, and for $1, 3/2 of a yard; then, for 1/4 of a dollar, 1/4 of 3/2, or 3/8 of a yard can be purchased, and for 3/4 of a dollar, 9/8 = 1 1/8 yards.
q: If a pound of coffee is worth 2/5 of a dollar, how much can John buy for 2/3 of a dollar? {~(2/3) / (2/5)}
q: If a pound of tea cost 4/5 of a dollar, how much tea can you purchase for 2/3 of a dollar? {~(2/3) / (4/5)}
q: At 2/5 of a dollar for one yard, how much cloth can be bought for 3/4 of a dollar? {~(3/4) / (2/5)} How much for 5/6 of a dollar? {~(5/6) / (2/5)} For one dollar? {~1 / (2/5)}
q: One bushel of rye is worth 3/4 of a bushel of wheat: how much rye is worth 4/5 of a bushel of wheat? {~(4/5) / (3/4)} How much is worth 1 bushel? {~1 / (3/4)}
q: Divide 1/5 by 1/4. {~(1/5) / (1/4)}
sol: 1/5 divided by 1/4 is 4 times 1/5 = 4/5.
q: Divide 1/6 by 1/5. {~(1/6) / (1/5)} By 1/4. {~(1/6) / (1/4)} By 1/3. {~(1/6) / (1/3)}
q: Divide 1/7 by 1/6. {~(1/7) / (1/6)} By 1/5. {~(1/7) / (1/5)} By 1/4. {~(1/7) / (1/4)}
q: Divide 1/8 by 1/7. {~(1/8) / (1/7)} By 1/6. {~(1/8) / (1/6)} By 1/9. {~(1/8) / (1/9)}
q: Divide 4/5 by 2/3. {~(4/5) / (2/3)}
sol: 4/5 / 1/3 = 12/5; then, 4/5 / 2/3 = 1/2 of 12/5, which is 6/5 = 1 1/5.
q: Divide 4/5 by 3/4. {~(4/5) / (3/4)}
q: Divide 5/6 by 4/5. {~(5/6) / (4/5)} By 3/4. {~(5/6) / (3/4)} By 2/3. {~(5/6) / (2/3)}
q: Divide 6/7 by 5/6. {~(6/7) / (5/6)} By 4/5. {~(6/7) / (4/5)} By 3/4. {~(6/7) / (3/4)}
q: Divide 7/8 by 6/7. {~(7/8) / (6/7)} By 5/6. {~(7/8) / (5/6)} By 4/5. {~(7/8) / (4/5)}
q: Divide 7/8 by 3/4. {~(7/8) / (3/4)}
sol: 7/8 / 3/4 is the same as 7/8 x 4/3 = 28/24, or 1 1/6.
q: Divide 8/9 by 7/8. {~(8/9) / (7/8)} By 6/7. {~(8/9) / (6/7)} By 5/6. {~(8/9) / (5/6)}
q: Divide 9/10 by 8/9. {~(9/10) / (8/9)} By 7/8. {~(9/10) / (7/8)} By 6/7. {~(9/10) / (6/7)}
q: Divide 10/11 by 9/10. {~(10/11) / (9/10)} By 8/9. {~(10/11) / (8/9)} By 7/8. {~(10/11) / (7/8)}
q: Divide 11/12 by 10/11. {~(11/12) / (10/11)} By 9/10. {~(11/12) / (9/10)} By 8/9. {~(11/12) / (8/9)}
q: Divide 6/5 by 2/3. {~(6/5) / (2/3)} 7/6 by 3/4. {~(7/6) / (3/4)} 8/7 by 4/5. {~(8/7) / (4/5)}
q: Divide 4/3 by 5/8. {~(4/3) / (5/8)} 9/8 by 4/7. {~(9/8) / (4/7)} 9/6 by 6/9. {~(9/6) / (6/9)}
q: Divide 10/9 by 10/11. {~(10/9) / (10/11)} 11/10 by 10/12. {~(11/10) / (10/12)} 12/11 by 7/8. {~(12/11) / (7/8)}
q: Divide 8/3 by 8/5. {~(8/3) / (8/5)} 7/4 by 7/8. {~(7/4) / (7/8)} 6/5 by 5/6. {~(6/5) / (5/6)}
q: Divide 12/7 by 11/7. {~(12/7) / (11/7)} 10/9 by 2/5. {~(10/9) / (2/5)} 11/3 by 6/5. {~(11/3) / (6/5)}

== 42 | Fractions | Dividing mixed numbers
q: A man, having 10 2/7 acres of land, divided it equally among his 6 children: how many acres did each receive? {~10_2/7 / 6}
sol: 10 2/7 = 72/7. Each received 1/6 of 72/7 acres, which is 12/7, or 1 5/7 acres.
q: If 2 4/5 be divided by 7, what will be the result? {~2_4/5 / 7}
q: How many times is 6 contained in 3 3/5? {~3_3/5 / 6}
q: How many times is 9 contained in 6 3/4? {~6_3/4 / 9}
q: Divide 8 3/4 by 5. {~8_3/4 / 5} 7 2/4 by 10. {~7_2/4 / 10}
q: Divide 4 5/7 by 11. {~4_5/7 / 11} 8 4/7 by 12. {~8_4/7 / 12}
q: If 1 1/2 yards of ribbon cost 6 cents, what will 1 yard cost? {4}
sol: 1 1/2 = 3/2. 1/2 a yard cost 1/3 of 6 cents = 2 cents; then, 1 yard cost 2 times 2 cents = 4 cents.
q: If 1 1/3 yards of cloth cost $4, what will 1 yard cost? {~4 / 1_1/3}
q: If a man travel 9 miles in 1 2/7 hours, how far will he travel in 1 hour? {~9 / 1_2/7}
q: A watch was sold for $18, which equaled 1 1/5 of what it cost me: how much did it cost? {~18 / 1_1/5}
q: A grocer sold a lot of flour for $25, which was 1 1/4 times the cost: what did it cost? {~25 / 1_1/4} How much did he gain? {~25 - 25 / 1_1/4}
q: If a man pays $6 for 1 1/3 yards of cloth, what is the cost of 1 yard? {~6 / 1_1/3}
q: If a man receives $10 for 2 2/3 days work, how much is that a day? {~10 / 2_2/3}
q: If a man receives $12 for 6 2/5 days work, how much is that a day? {~12 / 6_2/5}
q: How many are 9 divided by 3 3/4? {~9 / 3_3/4}
q: How many are 10 divided by 2 1/7? {~10 / 2_1/7}
q: How many are 11 divided by 4 8/9? {~11 / 4_8/9}

== 43 | Fractions | How often contained
q: If a yard of cloth cost 2/3 of a dollar, how many yards will cost 4 6/7 dollars? {~4_6/7 / (2/3)}
sol: 4 6/7 = 34/7. As many yards as 2/3 are contained times in 34/7, which are 51/7 = 7 2/7.
q: When a bushel of corn costs 1/2 a dollar, how many bushels can you buy for 1 1/2 dollars? {~1_1/2 / (1/2)}
q: I distributed 2 2/3 bushels of wheat among a number of poor persons, giving to each 2/3 of a bushel: how many persons were there? {~2_2/3 / (2/3)}
q: At 1/4 of a dollar a yard, how many yards of alpaca can be purchased for 3 3/4 dollars? {~3_3/4 / (1/4)}
q: At 3/4 of a dollar a yard, how many yards of cloth can be purchased for 3 1/4 dollars? {~3_1/4 / (3/4)}
q: If an apple cost 3/4 of a cent, how many apples can be purchased for 3 3/4 cents? {~3_3/4 / (3/4)} For 5 1/4 cents? {~5_1/4 / (3/4)}
q: If a yard of cloth cost 2/3 of a dollar, how many yards can you purchase for 4 1/3 dollars? {~4_1/3 / (2/3)}
q: How often is 1 1/2 contained in 3/4? {~(3/4) / (1_1/2)} In 4/5? {~(4/5) / (1_1/2)} In 2 3/4? {~(2_3/4) / (1_1/2)}
q: How often is 2 1/4 contained in 5/6? {~(5/6) / (2_1/4)} In 5/7? {~(5/7) / (2_1/4)} In 3 7/8? {~(3_7/8) / (2_1/4)}
q: How often is 3 1/5 contained in 3/8? {~(3/8) / (3_1/5)} In 3/7? {~(3/7) / (3_1/5)} In 5 3/5? {~(5_3/5) / (3_1/5)}
q: 5 1/3 is 1/2 of what number? {~5_1/3 / (1/2)} 1/5 of what number? {~5_1/3 / (1/5)}
q: 7 3/4 is 1/3 of what number? {~7_3/4 / (1/3)} 1/7 of what number? {~7_3/4 / (1/7)}
q: 9 2/3 are 5/8 of what number? {~9_2/3 / (5/8)} 5/6 of what number? {~9_2/3 / (5/6)}
q: 4 2/3 are 2/5 of what number? {~4_2/3 / (2/5)} 5/6 of what number? {~4_2/3 / (5/6)}
q: 3 2/3 are 3/4 of what number? {~3_2/3 / (3/4)} 3/5 of what number? {~3_2/3 / (3/5)}
q: How often is 1/6 contained in 3 5/6? {~(3_5/6) / (1/6)} In 5 1/6? {~(5_1/6) / (1/6)} In 4 4/6? {~(4_4/6) / (1/6)}
q: How often are 3/5 contained in 2 2/5? {~(2_2/5) / (3/5)} In 4 3/5? {~(4_3/5) / (3/5)} In 6 1/5? {~(6_1/5) / (3/5)}
q: How often are 3/7 contained in 3 2/5? {~(3_2/5) / (3/7)} In 4 2/3? {~(4_2/3) / (3/7)} In 7 3/4? {~(7_3/4) / (3/7)}
q: How often are 5/8 contained in 4 3/4? {~(4_3/4) / (5/8)} In 5 3/5? {~(5_3/5) / (5/8)} In 8 4/7? {~(8_4/7) / (5/8)}
q: How often are 2/3 contained in 2 3/10? {~(2_3/10) / (2/3)} In 6 9/11? {~(6_9/11) / (2/3)} In 9 5/12? {~(9_5/12) / (2/3)} In 10 2/3? {~(10_2/3) / (2/3)}
q: At 2/5 of a dollar a gallon, how many gallons of vinegar can you buy for 2 2/5 dollars? {~2_2/5 / (2/5)} For 4 1/5 dollars? {~4_1/5 / (2/5)}
q: One bushel of rye is worth 3/4 of a bushel of wheat: how many bushels of rye can be bought with 4 1/2 bushels of wheat? {~4_1/2 / (3/4)} With 8 1/4 bushels? {~8_1/4 / (3/4)}

== 44 | Fractions | Parts of 12 and of 100
note: Parts of 12: 2 = 1/6, 3 = 1/4, 4 = 1/3, 6 = 1/2, 8 = 2/3, 9 = 3/4, 10 = 5/6. Parts of 100: 12 1/2 = 1/8, 16 2/3 = 1/6, 20 = 1/5, 25 = 1/4, 33 1/3 = 1/3, 37 1/2 = 3/8, 50 = 1/2, 62 1/2 = 5/8, 66 2/3 = 2/3, 75 = 3/4, 87 1/2 = 7/8.
q: Bought 3/4 of a dozen shirts, at $24 a dozen: what did they cost? {18}
sol: They cost 3/4 of $24 = $18.
q: Bought 2/3 of a dozen linen collars, at $3 a dozen: what did they cost? {2}
q: Bought 5/6 of a dozen handkerchiefs, at $4 a dozen: how much did they cost? {~5/6 * 4}
q: A grocer bought 6 1/2 dozen eggs, for 16 cents a dozen: how many cents did they cost? {104}
q: Bought 1 2/3 dozen pairs of hose, for 2 2/5 dollars a dozen: how much did they cost? {4} What did each pair cost? {~2_2/5 / 12}
sol: 1 2/3 = 5/3; 2 2/5 = 12/5. They cost 5/3 of $12/5 = $4. Each pair cost 1/12 of $12/5 = $1/5.
q: Bought 2 1/4 dozen copy-books, for 1 1/5 dollars a dozen: how much did they cost? {~2_1/4 * 1_1/5} What was the cost of each book? {~1_1/5 / 12}
q: A merchant bought 6 1/2 dozen knives, for 1 4/5 dollars a dozen: what did they cost? {~6_1/2 * 1_4/5} What did 1 knife cost? {~1_4/5 / 12}
q: Paid $5 a set, or 1/2 dozen, for 2 1/2 dozen spoons: what did they cost? {25}
q: Bought 4 1/6 dozen spelling-books, at 2 1/4 dollars a dozen: how much did they cost? {~4_1/6 * 2_1/4} What did 1 book cost? {~2_1/4 / 12}
q: A man bought 2 1/4 dozen handkerchiefs, for 6 3/4 dollars: how much was that apiece? {~6_3/4 / 27}
sol: 2 1/4 = 9/4; 6 3/4 = 27/4. He bought 1/9 of 9/4, or 3 handkerchiefs, for 1/9 of $27/4 = $3/4; then, 1 handkerchief cost 1/3 of $3/4 = $1/4.
q: A merchant paid 3 1/10 dollars for 7 3/4 dozen pairs of damaged hose, and sold them for 1/10 of a dollar a pair: how much did he gain on each pair? {~1/10 - 3_1/10 / 93}
q: A merchant paid $15 for 2 1/2 dozen silk handkerchiefs, and sold them for 3/5 of a dollar apiece: how much did he gain on each handkerchief? {~3/5 - 15 / 30} How much on the whole lot? {3}
q: Paid 18 3/4 dollars for 6 1/4 dozen knives, and sold them for 2 1/10 dollars a set, or 1/2 doz.: how much did I gain? {~12_1/2 * 2_1/10 - 18_3/4}
q: How many cents will 16 pounds of soap cost, at 12 1/2 cents a pound? {200|2}
sol: 12 1/2 cents = $1/8; then, 16 pounds will cost 16 times $1/8 = 16/8, or $2.
q: How many cents will 12 pounds of prunes cost, at 16 2/3 cents a pound? {200|2}
q: How many cents will 24 yards of alpaca cost, at 37 1/2 cents a yard? {900|9}
q: How many cents will 16 yards of flannel cost, at 62 1/2 cents a yard? {1000|10}
q: How many cents will 15 pounds of coffee cost, at 33 1/3 cents a pound? {500|5}
q: How many cents will 27 yards of flannel cost, at 66 2/3 cents a yard? {1800|18}
q: How many dollars will 15 yards of cloth cost, at 1 and 66 2/3 hundredths dollars a yard? {25}
q: Paid $12 for coffee, at 33 1/3 cents a pound: how many pounds did I buy? {36}
sol: 33 1/3 cents = $1/3. I bought as many pounds as 1/3 is contained times in 12, which are 36.
q: Paid 1 1/4 dollars for eggs, at 12 1/2 cents a dozen: how many dozen did I buy? {10}
q: Paid 7 1/2 dollars for flannel, at 62 1/2 cents a yard: how many yards did I buy? {12}
q: Paid $8 for flannel, at 66 2/3 cents a yard: how many yards did I buy? {12}
q: Multiply 32 by 12 1/2. {~32 * 12_1/2}
sol: 12 1/2 = 1/8 of 100; then, 32 x 12 1/2 = 32 / 8 x 100 = 400.
q: Multiply 18 by 50. {~18 * 50} 40 by 62 1/2. {~40 * 62_1/2} 68 by 75. {~68 * 75}
q: Multiply 48 by 75. {~48 * 75} 24 by 37 1/2. {~24 * 37_1/2} 51 by 33 1/3. {~51 * 33_1/3}
q: Multiply 39 by 66 2/3. {~39 * 66_2/3} 64 by 87 1/2. {~64 * 87_1/2} 96 by 62 1/2. {~96 * 62_1/2}
q: Divide 150 by 12 1/2. {~150 / 12_1/2}
sol: 150 / 12 1/2 = 150 x 8 / 100 = 12.
q: Divide 200 by 16 2/3. {~200 / 16_2/3} 560 by 20. {~560 / 20} 250 by 25. {~250 / 25}
q: Divide 350 by 37 1/2. {~350 / 37_1/2} 600 by 50. {~600 / 50} 750 by 62 1/2. {~750 / 62_1/2}

== 45 | Review | General review
q: William had 23 cents: Thomas gave him 8 cents more, George 6, James 5, and David 7; he gave 15 cents for a book: how many cents had he left? {34}
q: A grocer paid $12 for sugar, $9 for coffee, $5 for tea, $7 for flour, and had $10 left: how many dollars had he at first? {43}
q: A boy has 11 cents: his father gives him 9 cents, his mother 6, and his sister enough more to make 34: how many cents does his sister give him? {8}
q: Five men bought a horse for $42: the first gave $13; the second, $7; the third, $5; and the fourth, $9: how many dollars did the fifth give? {8}
q: A man purchased 8 sheep, at $4 a head; 5 barrels of flour, at $3 a barrel; 4 yards of cloth, at $3 a yard; and 5 ounces of opium, at $1 an ounce: how much did he spend? {64}
q: A boy lost 25 cents: after finding 15 cents, he had 25: how many cents had he at first? {35}
q: A man owed a debt of $28, and paid all but $9: how much did he pay? {19}
q: Borrowed $56: at one time I paid $23; at another, all but $7: how much did I pay the last time? {26}
q: James borrowed 37 cents: at one time he paid 5 cents, at another 8, and the third time, all but 15: how many cents did he pay the third time? {9}
q: A farmer sold 1 cow, at $18, and 5 pigs, at $3 each, receiving in payment 3 sheep, at $3 each, and the rest in money: how much money did he receive? {24}
q: A farmer sold 12 barrels of cider, at $3 a barrel: he then purchased 5 barrels of salt, at $3 a barrel, and some sugar, for $8: how many dollars had he left? {13}
q: A merchant purchased 13 hats, at $4 each; 5 pairs of shoes, at $2 a pair; and an umbrella, for $7: what must he sell the whole for to gain $9? {78}
q: If 2 barrels of flour cost $12, what will 7 barrels cost? {42} 5 barrels? {30}
q: If 3 barrels of cider cost $12, what will 4 barrels cost? {16} 9 barrels? {36}
q: If 4 yards of cloth cost $28, what will 7 yards cost? {49}
q: If 5 tons of hay cost $35, what will 8 tons cost? {56}
q: If 7 apples cost 28 cents, what will 3 apples cost? {12}
q: If 8 oranges are worth 24 apples, how many apples are 3 oranges worth? {9}
q: If 2 pounds of cheese cost 36 cents, what will 3 pounds cost? {54}
q: If 8 yards of cloth cost $56, what will 7 yards cost? {49}
q: If 9 yards of calico cost 72 cents, what will 6 yards cost? {48} 8 yards? {64} 10 yards? {80}
q: A walks 5 miles, while B walks 3: when A has gone 35 miles, how far has B gone? {21}
q: Joseph and his father are husking corn: the father can husk 7 rows while Joseph husks 3: how many rows will Joseph husk while his father husks 42? {18}
q: Charles can earn $9 while Mary earns $4: how many dollars will Charles earn while Mary earns $28? {63}
q: If 6 horses eat 12 bushels of oats in a week, how many bushels will 10 horses eat in the same time? {20}
q: If five horses eat 16 bushels in 2 weeks, how many weeks would it take them to eat 56 bushels? {7}
q: If 6 apples are worth 18 cents, how many apples must be given for 5 oranges, worth 6 cents each? {10}
q: How many horses can eat in 9 days the same amount of hay that 12 horses eat in 6 days? {8}

== 46 | Review | General review with fractions
q: If 4 yards of cloth cost $16, what will 5 yards cost? {20} 9 yards? {36}
q: What are 8/9 of 72? {?} 9/8 of 72? {~9/8 * 72}
q: If you had 64 cents, how many oranges could you buy, at 8 cents each? {8}
q: Ninety-six is how many times 6? {16}
q: James had 48 chestnuts: he gave 1/2 of them to his brother, and 1/3 to his sister: how many had he left? {8}
q: Nine times 9 are how many times 12? {~81 / 12}
q: In 8 5/9 how many ninths? {77} In 9 1/9? {82}
q: Reduce 48/120 to its lowest terms. {=2/5} 54/189? {=2/7} 240/288? {=5/6}
q: Reduce 3/9, 4/16, 17/72, to a least common denominator. 3/9 = ? {=24/72|48/144} 4/16 = ? {=18/72|36/144} 17/72 = ? {=17/72|34/144}
q: A farmer planted 4 1/2 acres in potatoes, 20 3/4 acres in wheat, and 24 7/8 acres in oats: how many acres did he plant? {~4_1/2 + 20_3/4 + 24_7/8}
q: From 9 3/8 take 5 2/3. {~9_3/8 - 5_2/3}
q: A man having 84 miles to travel, went 1/4 of the distance the first day, 1/3 the second, and the rest the third day: what part did he travel the last day, {~1 - 1/4 - 1/3} and how many miles? {35}
q: What are 9 times 7/18? {~9 * 7/18}
q: What are 7/11 of 12? {~7/11 * 12}
q: If 4 yards of cloth cost $15, what will 7 yards cost? {~15 / 4 * 7}
q: How many are 7 times 7 5/7? {~7 * 7_5/7}
q: Four times 6 3/7 are how many times 7? {~4 * 6_3/7 / 7}
q: Bought 8 3/4 pounds of sugar, at 8 cents a pound, and paid for it with milk, at 5 cents a quart: how many quarts did it take? {14}
q: What are 5/6 of 3/4 of 2/3 of 6? {~5/6 * 3/4 * 2/3 * 6}
q: If 6 kegs of tar cost 1 3/10 dollars, what will 9 kegs cost? {~1_3/10 / 6 * 9}
q: A farmer sold a horse for $99, and gained 3/8 of its cost: what did it cost? {72}
q: If 8/5 of the cost of a horse was $96, and it was paid with flour, at $6 a barrel, how many barrels did it take? {10}
q: 84 is 7/6 of how many times 9? {8}
q: 9/25 of 125 are how many times 5? {9}
q: 8/9 of 81 are 9/8 of what number? {64}
q: 4/7 of 35 are 5/6 of how many times 3/8 of 16? {4}
q: If a man pays 17 1/2 dollars for 4 3/8 yards of cloth, what is the cost of 1 yard? {4}
q: If an apple is worth 3/4 of a cent, how many apples can be purchased for 18 cents? {24}
q: 7 2/3 are 5/7 of what number? {~7_2/3 / (5/7)}
q: Bought 3 1/2 dozen hinges, at 1 4/5 dollars a dozen: how much did they cost? {~3_1/2 * 1_4/5}
q: Bought 30 yards of percale, at 12 1/2 cents a yard: how many dollars did it cost? {~30 * 12_1/2 / 100}
q: Paid 7 3/4 dollars for alpaca, at 33 1/3 cents a yard: how many yards did I buy? {~7_3/4 / (1/3)}
q: How much a day must a man earn to receive $72 for 8 weeks, 6 days to the week? {~72 / 48}
q: If 2 2/3 dollars are divided equally among 4 boys, what is each boy's share? {~2_2/3 / 4}
q: At 5 lemons for 3 cents, how many lemons can be bought for 12 cents? {20}
q: If 1 1/3 yards of cloth cost $8, how many yards can be purchased for $12? {2}
q: The age of Joseph is 20 years, which is 2/5 of the age of his father: the father's age is 10 times that of his youngest son: what is the age of the father? {50} What the age of the youngest son? {5}
q: By selling a quantity of cloth for $21, I made 2/5 of the cost: I paid for it with corn, at 1/3 of a dollar per bushel: how many bushels did I give? {45}
q: If 3/5 of a yard of cloth cost 2/3 of a dollar, what will 3 yards cost? {~(2/3) / (3/5) * 3}
q: What will be the cost of 11 yards of cloth, if 5 1/2 yards cost 4 2/5 dollars? {~4_2/5 / 5_1/2 * 11}
q: 1/3 of a certain number is 2 more than 1/2 of 12: what is the number? {24}
q: 1/4 of a certain number is 3 less than 1/5 of 30: what is the number? {12}
q: 2/5 of 20 are 6 less than how many thirds of 21? {2}
q: 3/4 of 24 are 6 more than 2/3 of what number? {18}
q: 5/6 of 30, increased by 4, are 1 less than 3/4 of some number: what is the number? {40}
q: 3/5 of 40 are 3 less than 9/10 of how many times 6? {5}
q: A boy having 40 cents gave 3/5 of them for 2 melons: what was the price of 1 melon? {12}
q: James had 14 cents, and gave 4/7 of them to his sister: how many cents had he left? {6}
q: John had 15 pears: he gave 1/3 to Frank, and 3/5 to Harry: how many had he left? {1}
q: A man had 30 yards of cloth, and sold 2/5 of it for $48: how much was that a yard? {4}
q: John had 25 cents, and gave 4/5 of them for peaches, at 2 cents each: how many did he buy? {10}
q: A boy having 54 chestnuts, divided 5/9 of them among 3 girls: how many did each receive? {10}
q: A man had 28 barrels of flour, and sold 2/7 of them for $48: what was that a barrel? {6}
q: James had 48 cents: he gave 3/8 to his brother, and spent the rest in chestnuts, at 9 cents a quart: how many quarts of chestnuts did he buy? {~30 / 9}
q: Thomas had 28 cents: he gave 1/4 to his sister, and 3/7 to his brother, and with the remainder he bought 3 newspapers: what did each cost? {3}
q: If 5 men earn $30 in 3 days, how much will 2 men earn in the same time? {12} How much will 2 men earn in 1 day? {4}
q: 6 is what part of 3/5 of 40? {~6 / 24}
q: 3/7 of 14 is what part of 54? {~6 / 54}
q: 5/6 of 12 is what part of 4/9 of 72? {~10 / 32}
q: 3/5 of 20 is what part of twice that number of which 14 is 7/9? {~12 / 36}
q: If 3/8 of a ton of hay cost $9, what will 5/6 of a ton cost? {20}
q: If $7 will buy 56 yards of muslin, how many yards will $4 buy? {32}
q: If 3 men can do a job of work in 16 days, in how many days can 4 men do it? {12}
q: If 3 men spend $12 in 1 week, at the same rate, how many dollars would 2 men spend in 6 weeks? {48}
q: If 6 men do a piece of work in 7 days, in how many days can 3 men do it? {14}
q: If 5 men do a piece of work in 8 days, in how many days can 4 men do a piece twice as large? {20}
q: If 6 men perform a certain amount of labor in 5 days, in how many days can 2 men do 1/2 that amount? {~6 * 5 / 2 / 2}
q: James had 16 apples: he kept 1/4 of them himself and divided the remainder equally among 3 of his companions: how many did each receive? {4}
q: Three-fourths of 24, increased by 2/3 of 12, are equal to how many? {26}
q: Five-sixths of 24, diminished by 3/4 of 20, equal how many? {5}
q: Two-thirds of 12, less 1/2 of 12, are 2/5 of what number? {5}
q: Add together 1/2, 2/3, and 3/4 of 12. {23}
q: From 10 take 3/5 of itself; add to the remainder its 1/2: what is the result? {6}
q: Thomas had 28 cents: he gave 2/7 of the amount to his sister, and 2/5 of the remainder to his brother: how much more did he give away than he had left? {4}
q: James had 35 marbles: he gave to Thomas 3/7 of them, to Charles 2/5: to which did he give the most, and how many? {15} What number had he left? {6}
sol: He gave Thomas 15 and Charles 14, so Thomas got the most, 15 marbles; he had 35 - 29 = 6 left.
q: Thomas had $28: he kept 2/7 of the whole, and divided the remainder equally among his 4 brothers: how many dollars did each receive? {5}
q: A grocer had 14 barrels of flour: he sold 4/7 of it at $3 a barrel, and the remainder at $5 a barrel: what amount did he receive? {54}
q: Bought 15 yards of cloth, at $2 a yard: I sold 1/3 of it at $4 a yard, 2/5 at $3 a yard, and the remainder at $5 a yard: how much did I gain? {28}
q: Bought 10 yards of cloth for $90, and sold 2/5 of it for $40: how much a yard did I gain on the quantity sold? {1}
q: Two men travel the same direction: A is 40 miles ahead of B; but B travels 23 miles a day, and A 18: in how many days will B overtake A? {8}
q: A hare is 90 yards in advance of a hound: the hound goes 10 feet in a second, and the hare 7 feet in a second: in how many seconds will the hound overtake the hare? {90} How many feet will the hound run? {900} The hare? {630}
q: If a hound run 7 rods while a hare runs 4, how far will the hare run while the hound runs 35 rods? {20}
q: C and D travel in the same direction: C is 15 miles ahead of D; but D travels 5 miles an hour, and C only 2: in how many hours will D overtake C? {5} How far will D have traveled? {25}
q: A cistern containing 24 gallons, is filled by a pipe at the rate of 8 gallons an hour, and emptied by a pipe at the rate of 5 gallons an hour: if both pipes are open, how many hours will the cistern be in filling? {8}
q: A cistern containing 36 gallons has 2 pipes; by the first it receives 6 gallons an hour, and by the second it discharges 9 gallons an hour: if both pipes are left open, how many hours will it take to empty the cistern? {12}
q: A pair of pants cost $8, which was 2/5 of the cost of a coat; a vest cost 1/2 as much as the pants: what was the cost of the whole suit? {32}
q: Joseph had $1: he spent 2/5 of the amount for oranges; 2/3 of the remainder for lemons; and 1/2 of the last remainder for an illustrated paper: how much of a dollar had he left? {~1/10}
q: When hay was $20 a ton, I gave 3/4 of a ton for 4 tons of coal: what was the coal worth per ton? {~20 * 3/4 / 4}
q: A man can perform a journey in 3 3/8 days: what part of the journey can he perform in 2 1/4 days? {~2_1/4 / 3_3/8}
q: A can do a piece of work in 2 days; B, in 4 days; and C, in 6 days: in how many days will they all do it when working together? {~1 / (1/2 + 1/4 + 1/6)}
q: Bought 20 yards of cloth, at $4 a yard, and 15 yards, at $3 a yard: sold 6/7 of the whole, at $3 a yard, and the remainder, at $4 a yard: what was the entire loss? {15} What the average loss per yard? {~15 / 35}
q: William had $96. He spent 1/12 for books, 5/11 of the remainder for clothing, 5/6 of what then remained for furniture, and, with what was left, bought wheat, at $1 a bushel: how many bushels did he buy? {8}
q: A and B are traveling in the same direction, A being 36 miles ahead of B; A travels 3/4 of the distance per hour that B travels, and B travels 6 miles an hour: in how many hours will B overtake A? {24}

== 47 | Tables | United States money
rule: 10 mills make 1 cent
rule: 10 cents make 1 dime
rule: 10 dimes make 1 dollar
rule: 10 dollars make 1 eagle
q: How many mills in 2 cents? {20}
sol: In 1 cent there are 10 mills; then, in 2 cents there are 2 times 10 mills = 20 mills.
q: How many mills in 3 cents? {30} In 4 cents? {40} 5 cents? {50} 6 cents? {60} 7 cents? {70} 8 cents? {80} 9 cents? {90}
q: How many cents in 2 dimes? {20} In 3 dimes? {30} 4 dimes? {40} 5? {50} 6? {60} 7? {70} 8? {80} 9? {90}
q: How many dimes in 2 dollars? {20} In 3 dollars? {30} 4 dollars? {40} 5? {50} 6? {60} 7? {70} 8? {80} 9? {90}
q: How many dollars in 2 eagles? {20} In 3 eagles? {30} 4 eagles? {40} 5? {50} 6? {60} 7? {70} 8? {80} 9? {90}
q: How many cents in 2 dollars? {200}
sol: In 1 dollar there are 10 dimes; then, in 2 dollars there are 2 times 10 dimes = 20 dimes. In 1 dime there are 10 cents; then, in 20 dimes there are 20 times 10 cents = 200 cents.
q: How many cents in 3 dollars? {300} In 4 dollars? {400} 5 dollars? {500} 6? {600} 7? {700} 8? {800} 9? {900}
q: Twenty cents are how many dimes? {2}
sol: 10 cents are 1 dime; then, 20 cents are as many dimes as 10 is contained times in 20, which are 2.
q: Thirty cents are how many dimes? {3} 40 cents? {4} 50? {5} 60? {6} 70? {7} 80? {8} 90? {9}
q: Twenty dimes are how many dollars? {2} 30 dimes? {3} 40? {4} 50? {5} 60? {6} 70? {7} 80? {8} 90? {9}
q: Two hundred cents are how many dollars? {2}
sol: 10 cents are 1 dime; then, 200 cents are as many dimes as 10 is contained times in 200, which are 20. 10 dimes are 1 dollar; then, 20 dimes are as many dollars as 10 is contained times in 20, which are 2.
q: Three hundred cents are how many dollars? {3} 400 cents? {4} 500? {5} 600? {6} 700? {7} 800? {8} 900? {9}

== 48 | Tables | Dry measure
rule: 2 pints make 1 quart
rule: 8 quarts make 1 peck
rule: 4 pecks make 1 bushel
q: How many pints in 2 quarts? {4} In 3 quarts? {6} 4 quarts? {8} 5? {10} 6? {12} 7? {14}
q: How many quarts in 2 pecks? {16} In 3 pecks? {24}
q: How many pecks in 2 bushels? {8} In 3 bushels? {12} 4 bushels? {16} 5? {20} 6? {24} 7? {28} 8? {32} 9? {36} 10? {40} 11? {44} 12? {48}
q: Four pints are how many quarts? {2} 6 pints? {3} 8? {4} 10? {5} 12? {6} 14? {7}
q: Sixteen quarts are how many pecks? {2} 24 quarts? {3}
q: Eight pecks are how many bushels? {2} 12 pecks? {3} 16? {4} 20? {5} 24? {6} 28? {7}
q: Reduce 3 qt. 1 pt. to pints. {7}
sol: In 1 qt. there are 2 pt.; then, in 3 qt. there are 3 times 2 pt. = 6 pt.; 6 pt. + 1 pt. = 7 pt.
q: Reduce 3 pk. 5 qt. to quarts. {29}
q: Reduce 3 bu. 2 pk. to pecks. {14}
q: Reduce 2 pk. 3 qt. 1 pt. to pints. {39}
q: Reduce 2 bu. 3 pk. 7 qt. to quarts. {95}
q: Reduce 1 bu. 2 pk. 2 qt. 1 pt. to pints. {101}
q: Reduce 7 pt. to quarts. Quarts? {3} Pints? {1}
sol: 2 pt. are 1 qt.; then, 7 pints are as many quarts as 2 is contained times in 7, which are 3 and 1 rem. = 3 qt. 1 pt.
q: Reduce 9 pt. to quarts. Quarts? {4} Pints? {1}
q: Reduce 11 pt. to quarts. Quarts? {5} Pints? {1}
q: Reduce 13 pt. to quarts. Quarts? {6} Pints? {1}
q: Reduce 15 pt. to quarts. Quarts? {7} Pints? {1}
q: Reduce 10 qt. to pecks. Pecks? {1} Quarts? {2}
q: Reduce 11 qt. to pecks. Pecks? {1} Quarts? {3}
q: Reduce 12 qt. to pecks. Pecks? {1} Quarts? {4}
q: Reduce 13 qt. to pecks. Pecks? {1} Quarts? {5}
q: Reduce 17 qt. to pecks. Pecks? {2} Quarts? {1}
q: Reduce 19 qt. to pecks. Pecks? {2} Quarts? {3}
q: Reduce 23 qt. to pecks. Pecks? {2} Quarts? {7}
q: Reduce 27 qt. to pecks. Pecks? {3} Quarts? {3}
q: Reduce 7 pk. to bushels. Bushels? {1} Pecks? {3}
q: Reduce 10 pk. to bushels. Bushels? {2} Pecks? {2}
q: Reduce 13 pk. to bushels. Bushels? {3} Pecks? {1}
q: Reduce 15 pk. to bushels. Bushels? {3} Pecks? {3}
q: Reduce 17 pk. to bushels. Bushels? {4} Pecks? {1}
q: Reduce 23 pk. to bushels. Bushels? {5} Pecks? {3}
q: Reduce 27 pt. to pecks. Pecks? {1} Quarts? {5} Pints? {1}
sol: 27 pt. = 13 qt. 1 pt.; 13 qt. = 1 pk. 5 qt.: therefore, 27 pt. = 1 pk. 5 qt. 1 pt.
q: Reduce 35 pt. to pecks. Pecks? {2} Quarts? {1} Pints? {1}
q: Reduce 39 pt. to pecks. Pecks? {2} Quarts? {3} Pints? {1}
q: Reduce 43 pt. to pecks. Pecks? {2} Quarts? {5} Pints? {1}
q: Reduce 45 pt. to pecks. Pecks? {2} Quarts? {6} Pints? {1}
q: Reduce 53 qt. to bushels. Bushels? {1} Pecks? {2} Quarts? {5}
q: Reduce 55 qt. to bushels. Bushels? {1} Pecks? {2} Quarts? {7}
q: Reduce 57 qt. to bushels. Bushels? {1} Pecks? {3} Quarts? {1}
q: Reduce 59 qt. to bushels. Bushels? {1} Pecks? {3} Quarts? {3}
q: Reduce 83 qt. to bushels. Bushels? {2} Pecks? {2} Quarts? {3}
q: Reduce 86 qt. to bushels. Bushels? {2} Pecks? {2} Quarts? {6}
q: Reduce 89 qt. to bushels. Bushels? {2} Pecks? {3} Quarts? {1}
q: Reduce 92 qt. to bushels. Bushels? {2} Pecks? {3} Quarts? {4}
q: Reduce 223 pt. to bushels. Bushels? {3} Pecks? {1} Quarts? {7} Pints? {1}
q: Reduce 224 pt. to bushels. Bushels? {3} Pecks? {2} Quarts? {0} Pints? {0}
q: Reduce 226 pt. to bushels. Bushels? {3} Pecks? {2} Quarts? {1} Pints? {0}
q: Reduce 228 pt. to bushels. Bushels? {3} Pecks? {2} Quarts? {2} Pints? {0}
q: Reduce 345 pt. to bushels. Bushels? {5} Pecks? {1} Quarts? {4} Pints? {1}
q: Reduce 346 pt. to bushels. Bushels? {5} Pecks? {1} Quarts? {5} Pints? {0}
q: Reduce 347 pt. to bushels. Bushels? {5} Pecks? {1} Quarts? {5} Pints? {1}
q: Reduce 348 pt. to bushels. Bushels? {5} Pecks? {1} Quarts? {6} Pints? {0}
q: Reduce 6 bu. 2 qt. to quarts. {194}
q: Reduce 2 bu. 1 pt. to pints. {129}
q: Reduce 4 bu. 2 pk. to pints. {288}
q: Reduce 3 bu. 7 qt. 1 pt. to pints. {207}
q: Reduce 5 bu. 3 pk. 1 pt. to pints. {369}
q: Reduce 7 bu. 3 pk. 7 qt. to pints. {510}

== 49 | Tables | Liquid measure
rule: 4 gills make 1 pint
rule: 2 pints make 1 quart
rule: 4 quarts make 1 gallon
q: How many pints in 2 qt.? {4} In 3 qt.? {6}
q: How many quarts in 2 gal.? {8} In 3 gal.? {12} 4 gal.? {16} 5? {20} 6? {24} 7? {28} 8? {32} 9? {36} 10? {40} 11? {44} 12? {48}
q: 5 gi. are how many pints? Pints? {1} Gills? {1}
q: 6 gi. are how many pints? Pints? {1} Gills? {2}
q: 7 gi. are how many pints? Pints? {1} Gills? {3}
q: 3 pt. are how many quarts? Quarts? {1} Pints? {1}
q: 4 pt. are how many quarts? Quarts? {2} Pints? {0}
q: 5 pt. are how many quarts? Quarts? {2} Pints? {1}
q: 6 pt. are how many quarts? Quarts? {3} Pints? {0}
q: 7 pt. are how many quarts? Quarts? {3} Pints? {1}
q: 5 qt. are how many gallons? Gallons? {1} Quarts? {1}
q: 6 qt. are how many gallons? Gallons? {1} Quarts? {2}
q: 7 qt. are how many gallons? Gallons? {1} Quarts? {3}
q: 8 qt. are how many gallons? Gallons? {2} Quarts? {0}
q: 9 qt. are how many gallons? Gallons? {2} Quarts? {1}
q: 10 qt. are how many gallons? Gallons? {2} Quarts? {2}
q: 11 qt. are how many gallons? Gallons? {2} Quarts? {3}
q: 12 qt. are how many gallons? Gallons? {3} Quarts? {0}
q: How many gills in 1 qt.? {8} In 2 qt.? {16} 3 qt.? {24}
q: How many pints in 1 gal.? {8} In 2 gal.? {16} 3 gal.? {24} 4? {32} 5? {40}
q: How many gills in 1 gal.? {32} In 2 gal.? {64} 3 gal.? {96} 4? {128} 5? {160}
q: Reduce 1 pt. 3 gi. to gills. {7}
q: Reduce 3 qt. 1 pt. to pints. {7}
q: Reduce 5 gal. 2 qt. to quarts. {22}
q: Reduce 2 qt. 1 pt. 1 gi. to gills. {21}
q: Reduce 4 gal. 3 qt. 1 pt. to pints. {39}
q: Reduce 1 gal. 1 qt. 1 pt. 3 gi. to gills. {47}
q: Reduce 13 gi. to quarts. Quarts? {1} Pints? {1} Gills? {1}
q: Reduce 23 pt. to gallons. Gallons? {2} Quarts? {3} Pints? {1}
q: Reduce 79 gi. to gallons. Gallons? {2} Quarts? {1} Pints? {1} Gills? {3}
q: Reduce 97 gi. to gallons. Gallons? {3} Quarts? {0} Pints? {0} Gills? {1}
q: Reduce 98 gi. to gallons. Gallons? {3} Quarts? {0} Pints? {0} Gills? {2}
q: Reduce 100 gi. to gallons. Gallons? {3} Quarts? {0} Pints? {1} Gills? {0}
q: Reduce 102 gi. to gallons. Gallons? {3} Quarts? {0} Pints? {1} Gills? {2}
q: Reduce 187 gi. to gallons. Gallons? {5} Quarts? {3} Pints? {0} Gills? {3}
q: Reduce 188 gi. to gallons. Gallons? {5} Quarts? {3} Pints? {1} Gills? {0}
q: Reduce 190 gi. to gallons. Gallons? {5} Quarts? {3} Pints? {1} Gills? {2}
q: Reduce 192 gi. to gallons. Gallons? {6} Quarts? {0} Pints? {0} Gills? {0}
q: Reduce 6 gal. 2 pt. to gills. {200}
q: Reduce 8 gal. 3 gi. to gills. {259}
q: Reduce 10 gal. 10 qt. 10 pt. to gills. {440}

== 50 | Tables | Avoirdupois weight
rule: 16 drams make 1 ounce
rule: 16 ounces make 1 pound
rule: 100 pounds make 1 hundred-weight
rule: 20 hundred-weights make 1 ton
q: How many drams in 2 oz.? {32} In 3 oz.? {48} 4 oz.? {64} 5? {80} 6? {96}
q: How many ounces in 2 lb.? {32} In 3 lb.? {48} 4 lb.? {64} 5? {80} 6? {96} 10? {160}
q: How many pounds in 2 cwt.? {200} In 3 cwt.? {300} 4 cwt.? {400} 5? {500} 6? {600} 7? {700} 8? {800} 9? {900}
q: How many hundred-weights in 2 tons? {40} In 3 tons? {60} 4 tons? {80} 5? {100} 6? {120}
q: 20 dr. are how many ounces? Ounces? {1} Drams? {4}
q: 27 dr. are how many ounces? Ounces? {1} Drams? {11}
q: 35 dr. are how many ounces? Ounces? {2} Drams? {3}
q: 42 oz. are how many pounds? Pounds? {2} Ounces? {10}
q: 53 oz. are how many pounds? Pounds? {3} Ounces? {5}
q: 75 oz. are how many pounds? Pounds? {4} Ounces? {11}
q: 90 oz. are how many pounds? Pounds? {5} Ounces? {10}
q: 300 lb. are how many hundred-weights? Hundred-weights? {3} Pounds? {0}
q: 450 lb. are how many hundred-weights? Hundred-weights? {4} Pounds? {50}
q: 575 lb. are how many hundred-weights? Hundred-weights? {5} Pounds? {75}
q: 1200 lb. are how many hundred-weights? Hundred-weights? {12} Pounds? {0}
q: 40 cwt. are how many tons? Tons? {2} Hundred-weights? {0}
q: 50 cwt. are how many tons? Tons? {2} Hundred-weights? {10}
q: 75 cwt. are how many tons? Tons? {3} Hundred-weights? {15}
q: 80 cwt. are how many tons? Tons? {4} Hundred-weights? {0}
q: 96 cwt. are how many tons? Tons? {4} Hundred-weights? {16}
q: How many ounces in 1/2 lb.? {8}
sol: In 1 lb. there are 16 oz.; then, in 1/2 lb. there are 1/2 of 16 = 8 oz.
q: How many ounces in 1/4 lb.? {4} 3/4 lb.? {12}
q: How many pounds in 1/2 cwt.? {50} In 1/4 cwt.? {25} In 3/4 cwt.? {75} 1/5? {20} 2/5? {40} 3/5? {60} 4/5? {80}
q: Reduce 4 oz. 11 dr. to drams. {75}
q: Reduce 10 lb. 10 oz. 11 dr. to drams. {2731}
q: Reduce 15 cwt. 45 lb. to pounds. {1545}
q: Reduce 4 T. 10 cwt. 75 lb. to pounds. {9075}
q: Twelve ounces are what part of a pound? {~12/16}
sol: In 1 lb. there are 16 oz.; then, 12 oz. are 12/16 = 3/4 lb.
q: Eight oz. are what part of a pound? {~8/16} 10 oz.? {~10/16} 14? {~14/16}
q: Ten lb. are what part of a hundred-weight? {~10/100} 20 lb.? {~20/100} 25? {~25/100} 40? {~40/100} 50? {~50/100} 60? {~60/100} 75? {~75/100} 80? {~80/100}
q: Four cwt. are what part of a ton? {~4/20} 5 cwt.? {~5/20} 6? {~6/20} 8? {~8/20} 10? {~10/20} 12? {~12/20} 15? {~15/20} 16? {~16/20} 18? {~18/20}

== 51 | Tables | Long measure
rule: 12 inches make 1 foot
rule: 3 feet make 1 yard
rule: 5 and a half yards make 1 rod
rule: 40 rods make 1 furlong
rule: 8 furlongs make 1 mile
q: How many inches in 2 ft.? {24}
q: How many feet in 2 yd.? {6} In 3 yd.? {9} 4 yd.? {12} 5? {15}
q: How many yards in 2 rd.? {11} In 4 rd.? {22} 5 rd.? {~5 * 5_1/2} 7? {~7 * 5_1/2} 10? {55}
q: How many rods in 3 fur.? {120} In 4 fur.? {160} 5 fur.? {200} 6? {240} 7? {280} 9? {360}
q: How many furlongs in 9 miles? {72}
q: Thirty-six in. are how many feet? {3} 48 in.? {4}
q: Fifteen ft. are how many yards? {5} 21 ft.? {7}
q: Twenty-two yd. are how many rods? {4} 33 yd.? {6}
q: Six hundred and forty rd. are how many miles? {2}
q: What is the value of 5/6 yd.? Feet? {2} Inches? {6}
sol: In 1 yd. there are 3 ft.; then, in 5/6 yd. there are 5/6 of 3 ft. = 15/6, or 2 1/2 ft. In 1 ft. there are 12 in.; then, in 1/2 ft. there are 1/2 of 12 in. = 6 in.; therefore, 5/6 yd. = 2 ft. 6 in.
q: What is the value of 2/3 ft.? Inches? {8} 3/4 ft.? Inches? {9}
q: What is the value of 2/3 yd.? Feet? {2} 3/4 yd.? Feet? {2} Inches? {3}
q: What is the value of 6/11 rd.? Yards? {3} 1/2 rd.? Yards? {2} Feet? {2} Inches? {3} 2/3 rd.? Yards? {3} Feet? {2} 2/5 rd.? Yards? {2} Feet? {0} Inches? {~36/5}
q: What is the value of 1/4 mi.? Furlongs? {2} 1/3 mi.? Furlongs? {2} Rods? {~80/3} 2/3 mi.? Furlongs? {5} Rods? {~40/3} 3/4 mi.? Furlongs? {6} 2/5 mi.? Furlongs? {3} Rods? {8}
q: Sixteen rd. are what part of a mile? {~16/320}
sol: In 1 mi. there are 8 fur.; in 8 fur. there are 320 rd.; then, 16 rd. are 16/320 = 1/20 of a mile.
q: Twenty-four rd. are what part of a mile? {~24/320}
q: Three yd. are what part of a rod? {~3 / 5_1/2}
q: Two ft. are what part of a yard? {~2/3} Of a rod? {~2 / 16_1/2}
q: Six in. are what part of a foot? {~6/12} Of a yard? {~6/36} Of a rod? {~6/198}

== 52 | Tables | Time
rule: 60 seconds make 1 minute
rule: 60 minutes make 1 hour
rule: 24 hours make 1 day
rule: 365 days make 1 common year
rule: 366 days make 1 leap-year
rule: 100 years make 1 century
rule: 7 days make 1 week
rule: 4 weeks make 1 month
rule: 12 calendar months make 1 year
note: One solar year contains 365 days, 5 hours, 48 minutes, and 46 seconds, or 365 1/4 days, nearly. Thirty days have September, April, June, and November; February has 28, or 29 in a leap-year; all the rest have 31.
q: What is the value of 1/2 min.? Seconds? {30} 1/3 min.? Seconds? {20} 2/3? Seconds? {40} 3/4? Seconds? {45}
q: What is the value of 1/5 hr.? Minutes? {12} 2/5 hr.? Minutes? {24} 3/5 hr.? Minutes? {36} 4/5 hr.? Minutes? {48} 1/6 hr.? Minutes? {10} 5/6 hr.? Minutes? {50} 1/7 hr.? Minutes? {8} Seconds? {~240/7}
q: What is the value of 1/2 da.? Hours? {12} 2/3 da.? Hours? {16} 5/6 da.? Hours? {20} 2/7 da.? Hours? {6} Minutes? {51} Seconds? {~180/7} 3/8 da.? Hours? {9} 7/10 da.? Hours? {16} Minutes? {48}
q: What is the value of 3/7 wk.? Days? {3} 5/7 wk.? Days? {5}
q: What is the value of 1/2 mon.? Weeks? {2} 3/4 mon.? Weeks? {3} 2/7 mon.? Weeks? {1} Days? {1} 6/7 mon.? Weeks? {3} Days? {3} 9/14 mon.? Weeks? {2} Days? {4} 13/14 mon.? Weeks? {3} Days? {5}
q: Twenty sec. are what part of a minute? {~20/60}
q: Fifty min. are what part of an hour? {~50/60}
q: Twelve hr. are what part of a day? {~12/24} Of a week? {~12/168}
q: Five days are what part of a week? {~5/7}
q: Eight calendar months are what part of a year? {~8/12}
q: Three hr. 30 min. are what part of a day? {~3_1/2 / 24}
q: Three da. 12 hr. are what part of a week? {~3_1/2 / 7}
q: One wk. 3 da. are what part of a month? {~10/28}
q: One wk. 3 da. 16 hr. are what part of a month? {~10_2/3 / 28}
q: How many days in April and May taken together? {61}
q: How many days in June, July, and August taken together? {92}
q: How many days in September, October, and November taken together? {91}
q: How many days from July 12 to July 28? {16}
q: How many days from October 27 to December 25? {59}
q: How many days from the Vernal Equinox, March 20, to the Autumnal Equinox, September 22? {186}
q: How many days from the Summer Solstice, June 21, to the Winter Solstice, December 21? {183}

== 53 | Review | Measures review
q: What is the cost of 5 bu. 3 pk. of corn, at 60 cents a bushel? How many cents? {345}
q: When milk is 5 cents a pint, how many cents does a milkman get for 4 gal. 2 qt. 1 pt.? {185}
q: At 10 cents a pound, how many cents will be the cost of 7 lb. 12 oz. sugar? {~7_3/4 * 10}
q: What will it cost to build a fence 5 rd. 2 yd. 2 ft. 3 in. long, at $12 a rod? {66}
q: A steamer from Milwaukee to Grand Haven, at the average rate of 9 miles an hour, was 9 hr. 26 min. 40 sec. in making the trip: how many miles is the distance? {85}
q: How many gallons of wine, at $8 a gallon, can be purchased for $23? {~23/8}
q: How many pounds of coffee, at 30 cts. per lb., can be bought for $5? {~500/30}
q: Add 3/10 da. and 2/5 hr. Hours? {7} Minutes? {36}
q: Add 1/3 rd., 1/2 yd., and 3/4 ft. Yards? {2} Feet? {1} Inches? {9}
q: From 3/8 bu., take 3/4 pk. How many quarts are left? {6}
q: If 1 bu. 3 pk. of oats are worth 70 ct., how many cents are 2 bu. 1 pk. 4 qt. worth? {95}
q: If a wagon-wheel go 3 yd. 1 ft. in making 1 revolution: how far will it go in making 7 revolutions? Yards? {23} Feet? {1}
q: If 2/3 T. of hay cost $8, what will 3 cwt. 75 lb. cost? Dollars? {2} Cents? {25}
q: The time by rail from Cincinnati to Dayton, a distance of 60 miles, is 2 hr. 24 min., what is the rate of travel per hour of the train, in miles? {25}
q: If a cart-wheel make 1 revolution in going 3 yd. 1 ft. 6 in., how many revolutions will it make in going 1 rd. 5 yd.? {3}
q: How many weeks in April, May, and June taken together? {13}
q: I bought some roasted Java coffee for $2 and 35 ct., paying 40 ct. a lb.: how many lb. and oz. did I buy? Pounds? {5} Ounces? {14}
q: If there are 3 gal. in a dozen bottles of wine, how many dollars will 3 dozen bottles cost, at 50 ct. a quart? {18}
q: If 2 bu. 3 pk. of corn cost $1 and 65 ct.: how many cents is that a bushel? {60}
q: If there are 25 bu. in a ton of coal, how much will 150 bu. cost, at $3 and 75 ct. a ton? Dollars? {22} Cents? {50} How many cents a bushel? {15}
q: A lot is 50 ft. wide, and 100 ft. long: how many dollars will it cost to put a fence around it, at $5 a rod? {~300 / 16_1/2 * 5}

== 54 | Review | Money review
q: A merchant bought at one time 33 gallons of oil; at another, 20 gallons; at another, 50; and at another, 62: how many gallons did he buy in all? {165}
q: A lady paid $23 for a dress, $18 for a shawl, and $9 for a bonnet: what did she pay for all? {50}
q: I owe A $50, B $75, C $40, and D $20: how much money do I owe altogether? {185}
q: Having $92, I purchased a watch for $73: how much money had I left? {19}
q: A man bought a horse for $110, and sold him for $145: how much did he make? {35}
q: George bought candles for 25 ct., soap for 10 ct., sugar for 35 ct., and starch for 3 ct.; he gave the grocer $1, and received 30 ct. change: how many cents was this incorrect? {3}
q: A boy had $5, from which he took at one time $1 and 50 ct.; at another, 40 ct.; at another, $1 and 10 ct.: how many dollars had he left? {2}
q: What will be the cost of 5 yd. of cloth, at $2 and 50 ct. a yard? Dollars? {12} Cents? {50}
q: A man traveling at the rate of 5 miles an hour, meets a stage going at the rate of 9 miles an hour: how far apart will they be in 10 hours? {140}
q: Bought 15 lb. of sugar, at 11 ct. a pound, and 13 lb., at 9 ct. a pound, what did the whole cost? Dollars? {2} Cents? {82}
q: Henry has 19 ct., George 3 times as many, lacking 10 ct.: how many have both? {66}
q: How many yards in 3 bales of cloth, each containing 5 pieces, of 40 yd. each? {600}
q: If a boat sail 48 miles in 12 hours, how far will it sail in 7 hours? {28}
q: At 15 ct. a pound, how many pounds of beef can be purchased for $6? {40}
q: Three men bought a horse for $90; after keeping him 6 weeks, at $3 a week, and the use of him being worth $42, they sold him for $99: what did each man make? {11}
q: A farmer sold 12 bu. of corn, at 45 ct., and 8 bu. of wheat, at 95 ct. a bushel; he then bought 7 yd. of cloth, at 80 ct. a yard, and spent the balance for coffee, at 33 1/3 ct. a pound: how many pounds of coffee did he buy? {~740 / 33_1/3}
q: If I buy 9 bbl. of flour, at $6.50 a barrel, and 12 lb. of sugar, at 12 1/2 ct. a pound: how many bushels of apples, at 60 ct. a bushel, will I have to sell to pay for them? {100}

== 55 | Fractions | Part to part
q: If 1/3 of a yd. of cloth cost $2, how many dollars will 1/4 of a yd. cost? {~2 * 3 / 4}
q: If 2/3 of a yd. of cloth cost $5, how many dollars will 3/4 of a yd. cost? {~5 / (2/3) * 3/4}
sol: The cost of 1/3 of a yard will be 1/2 of $5 = $5/2; and a yard will cost 3 times $5/2 = $15/2: then, 1/4 of a yard will cost 1/4 of $15/2 = $15/8; and 3/4 of a yard will cost 3 times $15/8 = $5 5/8.
q: If 2/5 of a bbl. of flour cost $3, what will 2/3 of a bbl. cost? {~3 / (2/5) * 2/3}
q: If 4/7 of a yd. of flannel cost 24 cts., how many cents will 5/14 of a yd. cost? {~24 / (4/7) * 5/14}
q: If 5/9 of a ton of hay cost $15, how many dollars will one-half a ton cost? {~15 / (5/9) / 2}
q: If 3/8 of an orchard contain 30 fruit trees, how many trees are there in 7/16 of it? {~30 / (3/8) * 7/16}
q: If 1 2/5 yd. of cloth cost $14, what will 2 1/2 yd. cost? {~14 / 1_2/5 * 2_1/2}
q: If 1 1/2 bbl. of flour cost 5 1/4 dollars, how many dollars will 2 1/2 bbl. cost? {~5_1/4 / 1_1/2 * 2_1/2}
q: If 3 1/3 lb. of cheese cost 60 ct., how many cents will 2 5/6 lb. cost? {~60 / 3_1/3 * 2_5/6}
q: A traveled 30 mi. in 3 3/4 hr.: at that rate, how far could he travel in 7 1/4 hr.? {~30 / 3_3/4 * 7_1/4}
q: If a man earn 1 1/4 dollars in 10 hr., how many dollars can he earn in 11 hr.? {~1_1/4 / 10 * 11}
q: A can earn 9 3/5 dollars in 6 da., of 8 hr. each: how many dollars can he earn in 7 da., of 9 hr. each? {~9_3/5 / 48 * 63}
q: If 5 3/4 bu. of wheat cost 9 1/5 dollars, how many dollars will 3 1/3 bu. cost? {~9_1/5 / 5_3/4 * 3_1/3}
q: If 8 1/3 is 5/7 of a number, what is 4/5 of it? {~8_1/3 / (5/7) * 4/5}
q: If 3 1/2 is 2 1/3 times some number, what is 2 1/2 times that number? {~3_1/2 / 2_1/3 * 2_1/2}
q: If 3/4 of a barrel of flour cost 4 1/2 dollars, how many dollars will 3/5 of a barrel cost? {~4_1/2 / (3/4) * 3/5}
q: If 2/3 of a yard of lace cost 3/5 of a dollar, how much of a dollar will 5/6 of a yard cost? {~(3/5) / (2/3) * 5/6}
q: Two-thirds of 1 1/5 are 2/7 of what number? {~2/3 * 1_1/5 / (2/7)}
q: Five-ninths of 5 2/5 are 8/9 of what number? {~5/9 * 5_2/5 / (8/9)}
q: Four-sevenths of 4 3/8 are 5/11 of what number? {~4/7 * 4_3/8 / (5/11)}
q: Five-sevenths of 5 4/9 are 7/10 of what number? {~5/7 * 5_4/9 / (7/10)}
q: Two-thirds of 2 2/5 are 1/2 of how many times 2? {~2/3 * 2_2/5 / (1/2) / 2}
q: Three-fifths of 1 1/9 are 2/7 of how many times 4? {~3/5 * 1_1/9 / (2/7) / 4}
q: Three-fourths of 3 1/5 are 3/8 of how many times 3? {~3/4 * 3_1/5 / (3/8) / 3}
q: John has 10 marbles, and 4/5 of what John has are 8/11 of what James has: how many has James? {11}
q: Jane received 3/5 of 60 plums; she gave away 4/9 of 3/4 of them: how many were left? {24}
q: James has a given distance to travel; after going 35 mi., there remain 2/7 of the distance: when he has gone 3/7 of the remainder, how many miles must he then go? {8}
q: A horse cost $40; 3/4 of the price of the horse = 6/5 of the price of a cart: what did the cart cost? {25}
q: B's coat cost $27, and his hat $8; 4/9 of the cost of the coat + 3/4 that of the hat = 3/5 of the cost of his watch: what did the watch cost? {30}
q: Mary lost 2/7 of her plums; she gave 2/5 of the remainder to Sarah, and had 6 plums left: how many had she at first? {14}
q: John has 12 cents; 2/3 of his money = 1/2 of 4/5 of William's money: how much has William? {20}
q: On counting their money, it was found that A had 12 cents more than B; and that 1/2 of B's money = 2/7 of A's: how much had A? {28} How much had B? {16}
q: In an orchard, 1/3 are apple-trees, 1/4 are pear-trees, 1/12 are plum-trees, and the remainder, which is 32, cherry-trees: how many apple-trees are there? {32} Pear-trees? {24} Plum-trees? {8}
q: In an orchard of apple and pear-trees, the latter are 2/9 of the whole; the apple-trees are 25 more than the pear-trees: how many apple-trees are there? {35} How many pear-trees? {10}

== 56 | Review | Finding the numbers
q: What number added to itself will give a sum equal to 14? {7}
sol: A number added to itself is twice the number; then, twice the number is 14; and the number is 1/2 of 14 = 7.
q: What number added to itself 3 times will make 32? {8}
q: Divide 16 in two parts, so that the second part shall be 3 times the first. First part? {4} Second part? {12}
q: Divide 48 into two such parts, that the second shall be 7 times the first. First part? {6} Second part? {42}
q: Divide 24 into three parts, so that the second shall be 2 times and the third 3 times the first. First? {4} Second? {8} Third? {12}
q: Divide 45 into three parts, so that the second shall be three times and the third 5 times the first. First? {5} Second? {15} Third? {25}
q: When 10 was taken from a number, 2/3 of it remained: what was the number? {30}
q: The sum of two numbers is 25; if 10 is the less number, what is their difference? {5}
q: The sum of two numbers is 12; if 6 be added to the sum, the result will be twice the greater number; what are the numbers? The greater? {9} The less? {3}
q: If 6 be taken from the difference of two numbers, the remainder will be 2; if 4 is one of the numbers, what is the other? {12}
q: If 10 be added to the difference of two numbers, the sum will be 6 more than the greater number, which is 19: what is the less number? {4}
q: If 10 be taken from the sum of two numbers, 8 will be left; if 5 is one of the numbers, what is the other? {13}
q: The sum of two numbers is 16, and their difference 4: what are the numbers? The greater? {10} The less? {6}
sol: Twice the greater number is 16 + 4 = 20; then, the greater number is 1/2 of 20 = 10, and the less number is 10 - 4 = 6.
q: The sum of two numbers is 25, and their difference 5: what are the numbers? The greater? {15} The less? {10}
q: The sum of two numbers is 31, and the greater exceeds the less by 7: what are the numbers? The greater? {19} The less? {12}
q: Divide 15 cents between A and B, so that B may have 3 cents more than A. A's share? {6} B's share? {9}
q: Thomas has 5 apples more than James, and both together have 19: how many has Thomas? {12} James? {7}
q: Thomas and James each had the same number of cents, when Thomas found 8 more; they then had together 32 cents: how many had Thomas? {20} James? {12}
q: Thomas and William each bought the same number of peaches; after Thomas ate 4, and William 6, they both together had 20 left: how many peaches had Thomas remaining? {11} William? {9}
q: Mary bought twice as many cherries as Sarah; and, after Mary ate 7, and Sarah 5, they had only 24 left: how many had Mary left? {17} Sarah? {7}
q: If 5 be added to three times a certain number, the sum will be 50: what is the number? {15}
q: If 3/4 of a certain number be increased by 10, the sum will be 31: what is the number? {28}
q: If 4/5 of a number be diminished by 7, the remainder will be 21: what is the number? {35}
q: James is 4 years older than Henry, and Henry is 3 years younger than Oliver; the sum of all their ages is 37 years: what is the age of Henry? {10} James? {14} Oliver? {13}
sol: 3 times Henry's age is 37 yr. - 4 yr. - 3 yr. = 30 yr.; then, Henry's age is 1/3 of 30 yr. = 10 yr., James' age is 10 yr. + 4 yr. = 14 yr., and Oliver's age 10 yr. + 3 yr. = 13 yr.
q: Mary has 8 cts. more than Jane, and Sarah 3 less than Mary; they all have 43 ct.: how many has Mary? {18} Jane? {10} Sarah? {15}
q: The sum of the ages of Mary and Frank is 42 years; Mary is twice as old as Frank, less 3 years: what is the age of Mary? {27} Frank? {15}
q: I bought a watch, a chain, and a ring, for $62; the chain cost $5 less than the ring, and the watch $12 more than the chain: what did I pay for the watch? {27} The chain? {15} The ring? {20}
q: Thirty cents are 6 cents less than 1/2 of 4/7 of my money: how many cents have I? {126}
q: John has twice as much money as James, + $3; Frank has as much as John and James, + $7; together they have $55: how much has John? {17} James? {7} Frank? {31}
q: Joseph has 3 times as much money as Thomas - $2; Paul has twice as much as Joseph and Thomas together - $20; together they have $22: how much has Joseph? {10} Thomas? {4} Paul? {8}
q: A horse, buggy, and harness cost $225; the horse cost $50 more than the harness, and the buggy $25 more than the horse and harness together: what was the cost of the horse? {75} The buggy? {125} The harness? {25}

== 57 | Review | Parts and wholes
q: Divide 15 into two parts, so that the less part may be 2/3 of the greater. The greater part? {9} The less? {6}
sol: 3/3 + 2/3 = 5/3; 5/3 of the greater part = 15: then, 1/3 of the greater part is 1/5 of 15 = 3, and the greater part is 3 times 3 = 9; the less part is 15 - 9 = 6.
q: Thomas and John have $60 to pay; John has 3/7 as much to pay as Thomas: what must Thomas pay? {42} John? {18}
q: I had 56 mi. to travel in 2 da.; the second da. I went 3/4 as far as the first: how far did I travel the first day? {32} The second? {24}
q: Divide 100 into two such parts, that 5/7 of the first less 8 will equal the second. The first? {63} The second? {37}
q: Divide the number 45 into three such parts, that the second shall be 1/2, and the third 3/4 of the first part. First? {20} Second? {10} Third? {15}
q: A, B, and C, together have 40 ct.; B has 3/5 as many as A, and C 2/3 as many as B: how many cents has A? {20} B? {12} C? {8}
sol: C has 2/3 of 3/5 = 2/5 as many as A; then, 5/5 + 3/5 + 2/5 = 10/5; and 10/5, or twice as many as A, = 40 ct. Then, A has 1/2 of 40 ct. = 20 ct., B has 3/5 of 20 ct. = 12 ct., and C has 2/5 of 20 ct. = 8 ct.
q: A tree 70 ft. long was broken into 3 pieces; the middle part was 5/6 of the top part; the lower part was 3/5 of the middle part: what was the length of the top part? {30} The middle? {25} The lower? {15}
q: I bought a hat, coat, and vest, for $34; the hat cost 2/5 of the price of the coat, and the vest 3/4 the price of the hat: what was the cost of the hat? {8} The coat? {20} The vest? {6}
q: Divide 38 ct. between A and B, so that 2/3 of A's share may be equal to 3/5 of B's. A's share? {18} B's share? {20}
sol: 1/3 of A's share is 1/2 of 3/5 = 3/10 of B's, and A's share is 3 times 3/10 = 9/10 of B's; then, 10/10 + 9/10 = 19/10 of B's share, or 38 ct. 1/10 of B's share is 1/19 of 38 ct. = 2 ct., and B's share is 10 times 2 ct. = 20 ct. A's share is 9/10 of 20 ct. = 18 ct.
q: In a field containing 55 sheep and cows, 1/2 of the cows = 2/7 of the sheep: how many sheep are there? {35} Cows? {20}
q: The sum of two numbers is 60; and 1/3 of the less equals 2/9 of the greater: what is the greater? {36} The less? {24}
q: One-fourth of Mary's age = 1/3 of Sarah's, and the sum of their ages is 14 years: what is the age of Mary? {8} Sarah? {6}
q: Divide the number 51 into two such parts, that 2/3 of the first will equal 3/4 of the second. The first? {27} The second? {24}
q: In an orchard of 65 apple and peach-trees, 2/3 of the apple-trees = 4/7 of the peach-trees: how many apple-trees are there? {30} Peach-trees? {35}
q: From C to D is 66 mi.; A left C at the same time B left D; when they met, 2/3 of the distance A had traveled = 5/9 of the distance B had traveled: how much farther did B travel than A? {6}
q: In an orchard of apple, plum, and cherry-trees, 69 in all, the plum-trees = 1/3 of the apple-trees, and the cherry-trees = 1/2 of the apple-trees + 1/4 of the plum-trees: how many apple-trees are there? {36} Plum-trees? {12} Cherry-trees? {21}
q: The age of Jane is 7/8 of the age of Sarah, and 4/9 of both their ages is 5/3 of the age of Mary, which is 12 years: what is the age of Jane? {21} Sarah? {24}
q: How many times 3/11 of 44 is twice that number of which 4/5 of 30 is 4/9? {9}
q: John's money is 3/5 of Charles's; and 3/4 of John's + $33 = Charles's: how much has John? {36} Charles? {60}
q: On a farm there are 104 animals, hogs, sheep, and cows; there are 2/3 as many sheep as hogs, and 3/4 as many cows as sheep: how many hogs are there? {48} Sheep? {32} Cows? {24}
q: The time past noon is equal to half the time till midnight: what o'clock is it? {4}
sol: 2/2 + 1/2 = 3/2; 3/2 of the time to midnight = 12 hr.: then, 1/2 the time to midnight, or the time past noon, is 1/3 of 12 hr. = 4 hr.

q: The time elapsed since noon is 3/5 of the time to midnight: how many hours past noon is it? {~4_1/2}
q: The time past noon, + 3 hr., is equal to 1/2 of the time to midnight: what is the hour? {2}
q: What is the hour in the afternoon, when the time past noon is equal to 1/5 of the time past midnight? {3}
q: What is the hour in the afternoon, when the time past noon is 1/4 of the time past midnight? {4}
q: What is the hour of the day, when 1/2 of the time past noon is 1/20 of the time past midnight? Hours past noon? {1} Minutes? {20}

== 58 | Review | Finding a number from its parts
q: What number is that to which, if its half be added, the sum will be 15? {10}
sol: 2/2 + 1/2 = 3/2; 3/2 of the number = 15: then, 1/2 of the number is 1/3 of 15 = 5, and the number is 2 times 5 = 10.
q: What number is that to which if its 2/3 be added, the sum will be 20? {12}
q: If to Mary's age its 2/5 be added, the sum will be 21 years: what is her age? {15}
q: What number is that which being doubled, and increased by its 3/5, the sum will be 52? {20}
q: What number is that which being doubled, and diminished by its 4/7, the remainder will be 40? {28}
q: What number is that which being trebled, and diminished by its 3/5, the remainder will be 48? {20}
q: If to David's age you add its 1/2 and its 2/3, the sum will be 26: what is his age? {12}
q: If to Sarah's age you add its 1/3, its 1/4, and 10 years, the sum will be twice her age: how old is she? {24}
q: Thomas spent 2/5 of his money, and had 30 cents left: how much had he at first? {50}
q: If to a certain number you add its 1/2, and its 3/5 + 27, the number will be trebled: what is the number? {30}
q: A father is 40 years older than his son; the son's age is 3/11 of the father's age: what is the age of the father? {55} The son? {15}
q: If to Susan's age you add its 4/5 + 18 years, the sum will be 3 times her age: how old is she? {15}
q: A piece of flannel, having lost 2/9 of its length by shrinkage, measured 28 yd.: what was its length? {36}
q: The distance from A to B is 1/2 the distance from C to D, and 2/3 of the distance from A to B, + 20 mi., = the distance from C to D: what is the distance from A to B? {15} From C to D? {30}
q: My age plus its 1/3 and its 1/5 = 2/3 of my father's age. My father's age is 69 years; what is my age? {30}

== 59 | Review | Work done together
q: If A can do a piece of work in 2 days, what part of it can he do in 1 day? {~1/2}
q: A can drink a keg of cider in 10 days: what part of it can he drink in 1 day? {~1/10}
q: B can do a piece of work in 1/2 a day: how many times the work can he do in 1 day? {2}
q: C can mow a certain lot in 3/8 of a day: how many such lots can he mow in a day? {~1 / (3/8)}
q: A can mow a certain field in 2 1/2 days: what part of it can he mow in 1 day? {~1 / 2_1/2}
q: B can dig a trench in 3 1/2 days: what part of it can he dig in 1 day? {~1 / 3_1/2}
q: C can walk from Cincinnati to Dayton in 3 1/8 days: what part of the distance can he walk in 2 days? {~2 / 3_1/8}
q: A can do 1/2 of a piece of work in 1 day, and B 1/4 of it: what part of the work can both do in a day? {~1/2 + 1/4}
q: A can do 1/2, B 1/4, and C 1/5 of a piece of work in 1 day: what part of it can they all do in a day? {~1/2 + 1/4 + 1/5}
q: If A can do a piece of work in 2 days, and B in 3 days: in what time can they both together do it? {~1 / (1/2 + 1/3)}
sol: A and B can do 1/2 + 1/3 = 5/6 of the work in 1 day; then, they can do 1/6 of the work in 1/5 of a day, and the whole work in 6/5 = 1 1/5 days.
q: A can dig a trench in 6 days, and B in 12 days: in how many days can they both together do it? {~1 / (1/6 + 1/12)}
q: C alone can do a piece of work in 5 days, and B in 7 days: in what time can both do it? {~1 / (1/5 + 1/7)}
q: A can do a piece of work in 2 days, B in 3 days, and C in 6 days: in what time can all three do it? {~1 / (1/2 + 1/3 + 1/6)}
q: A and B mow a field in 4 days; B can mow it alone in 12 days: in what time can A mow it? {~1 / (1/4 - 1/12)}
sol: A can mow 1/4 - 1/12 = 1/6 of the field in 1 day; then, he can mow the whole field in 6 days.
q: A man and his wife can drink a keg of beer in 12 days; when the man is away, it lasts the woman 30 days: in what time can the man drink it alone? {~1 / (1/12 - 1/30)}
q: Three men, A, B, and C, can together reap a field of wheat in 4 days; A can reap it alone in 8 days, and B in 12 days: in what time can C reap it? {~1 / (1/4 - 1/8 - 1/12)}
q: A can do 1/2 a piece of work in a day, and B 1/3 of it in a day: how long will it take both to do it? {~1 / (1/2 + 1/3)}
q: A can dig a cellar alone in 2 1/2 days, and B in 3 1/3 days: in what time can both together dig it? {~1 / (1 / 2_1/2 + 1 / 3_1/3)}
q: C can reap a field of wheat in 5 days, and D in 3 1/3 days: in what time can both reap it? {~1 / (1/5 + 1 / 3_1/3)}

== 60 | Ratio | Ratio
note: Ratio is the relation which one quantity bears to another of the same kind. The ratio of 12 to 2 is 12 divided by 2, which is 6.
q: What part of 8 is 2? {~2/8} What part is 4? {~4/8} Is 1? {~1/8}
q: How many times does 10 contain 2? {5} 2 is what part of 10? {~2/10}
q: What is the ratio of 12 to 2? {6}
sol: The ratio of 12 to 2 is 12 / 2 = 6.
q: How many times does 18 contain 9? {2} What is the ratio of 18 to 9? {2}
q: What is the ratio of 36 to 12? {3} 45 to 9? {5} 66 to 11? {6} 52 to 13? {4} 1 to 2? {~1/2} 3 to 4? {~3/4}
q: What is the ratio of 2 1/2 to 5? {~2_1/2 / 5} 6 1/4 to 12 1/2? {~6_1/4 / 12_1/2} 1/4 to 1/2? {~(1/4) / (1/2)} Of 2/3 to 5/6? {~(2/3) / (5/6)} 2/3 to 4/5? {~(2/3) / (4/5)} 1/2 to 1/3? {~(1/2) / (1/3)}
q: If the ratio of two numbers is 5, and 6 is the less number, what is the greater? {30}
q: The ratio of 21 to 7 is equal to the ratio of 36 to some number: what is the number? {12}
q: Five less than the ratio of 20 to 2, is 1/4 of the ratio of 40 to what number? {2}
q: The ratio of 18 to 2, plus 3, is 7 less than the ratio of 38 to what number? {2}
q: The ratio of 27 to 9, increased by 5, is equal to the ratio of 20 to what number? {~20/8}
q: Divide 25 ct. between George and John, so that their shares shall be in the ratio of 3 to 2. George's share? {15} John's share? {10}
sol: George's share is 3 / 2 = 3/2 of John's; 2/2 + 3/2 = 5/2; 5/2 of John's share are 25 ct.: then, John's share is 10 ct., and George's 15 ct.
q: Divide the number 48 into two parts that shall be in the ratio of 5 to 7. The first part? {20} The second? {28}
q: Divide 20 apples between A and B, so that A may get 2 as often as B gets 3. A's share? {8} B's share? {12}
q: Divide 28 cents between John and James, so that John may get 3 as often as James gets 4. John's share? {12} James's share? {16}
q: In an orchard of 96 trees there are 5 apple trees to 3 peach trees: how many apple trees? {60} How many peach trees? {36}
q: A school of 35 pupils has 2 boys to 3 girls: how many boys in the school? {14} How many girls? {21}
q: What number is that which being added to 3 times itself will make 48? {12}
q: Mary has 25 yd. of ribbon; she wishes to divide it into two parts, so that one shall be 4 times the length of the other: what will be the length of the short part? {5} The long part? {20}
q: Divide 28 into two parts, so that one will be to the other as 3 to 4. The first part? {12} The second? {16}
q: A and B hired a pasture for $45: A pastured 4 cows, and B 5 cows: what should A pay? {20} What should B pay? {25}
q: Two men paid $3 for 7 1/2 dozen oysters: the first paid $2, and the second, $1: how many dozen oysters should the first have? {5} The second? {~2_1/2}
q: A and B bought a horse for $40; A paid $25, and B the rest: they sold him for $56: what should A receive? {35} B? {21}
q: C and D sold a horse for $30 less than it cost; C's share was to D's as 3 to 2: what was C's loss? {18} D's loss? {12}

== 61 | Ratio | Ratio with fractions
q: Divide the number 22 into two parts that shall be to each other as 2 1/2 to 3. The first part? {10} The second? {12}
sol: The first part is 2 1/2 / 3 = 5/6 of the second; 5/6 + 6/6 = 11/6; 11/6 of the second part = 22: then the second part is 12 and the first 10.
q: Divide 16 apples between Henry and Oliver, so that their shares shall be in the ratio of 1 1/2 to 2 1/2. Henry's share? {6} Oliver's share? {10}
q: Divide 14 ct. between A and B, so that B may have 1 1/3 times as many as A. A's share? {6} B's share? {8}
q: John and James have together 33 marbles; James has 1 3/4 times as many as John: how many has John? {12} James? {21}
q: Two boys bought a silver watch for $7: the first paid 2 1/2 dollars, the second, 4 1/2 dollars, and they sold it for $28: what was the first boy's share? {10} The second's? {18}
q: William's age is 1 2/3 times Frank's age; the sum of their ages is 32 yr.: what is the age of William? {20} Frank? {12}
q: A basket contains 30 apples: the number of sound ones is 2 1/3 times the number not sound: how many sound ones are there? {21} How many not sound? {9}
q: Two men built 27 ft. of wall: how much did each build, if one built 4/5 as much as the other? The first man? {15} The other? {12}
q: Divide the number 60 into 3 parts that shall be to each other as 3, 4, and 5. First? {15} Second? {20} Third? {25}
sol: 3/3 + 4/3 + 5/3 = 12/3; 12/3 of the first part = 60: then, the first part is 15, the second 20, and the third 25.
q: Divide the number 70 into four parts that shall be to each other as 1, 2, 3, and 4. First? {7} Second? {14} Third? {21} Fourth? {28}
q: Divide 39 into three parts that shall be to each other as 1/2, 1/3, and 1/4. First? {18} Second? {12} Third? {9}

q: William had 3 ct., Thomas 4 ct., and John 5 ct.; they bought 36 peaches: what was the share of William? {9} Thomas? {12} John? {15}
q: A boat worth $864, of which 1/8 belonged to A, 1/4 to B, and the rest to C, was lost: what loss did each sustain, it having been insured for $500? A's loss? {~364/8} B's loss? {91} C's loss? {~364 * 5/8}
q: A, B, and C have $42; B has 1/2 as much as A, and C 1/2 as much as B: how much has A? {24} B? {12} C? {6}
q: Divide 45 ct. among A, B, and C, so that A may get 4 ct. as often as B gets 3 ct. and C 2 ct. A's share? {20} B's? {15} C's? {10}
q: On a farm there are 60 animals, horses, cows, and sheep; for each horse there are 3 cows, and for each cow there are 2 sheep: how many horses? {6} Cows? {18} Sheep? {36}
q: Divide 42 plums among A, B, and C, so that B may get twice, and C 3 times as many as A. A's share? {7} B's? {14} C's? {21}
q: Divide 35 cherries among Emma, Agnes, and Sarah, so that Agnes shall have twice as many as Emma, and Sarah twice as many as Agnes. Emma? {5} Agnes? {10} Sarah? {20}

== 62 | Ratio | Work, loaves and wages
q: If 5 men can do a piece of work in 18 da., how many men can do it in 9 da.? {10}
sol: In 1 day, 18 times 5 men = 90 men can do the work; then, in 9 days, 1/9 of 90 men = 10 men can do it.
q: If 8 men can do a piece of work in 15 da., how many men can do it in 12 da.? {10}
q: If 8 men can do a piece of work in 5 da., in how many days can 5 men do it? {8}
q: If 9 pipes fill a cistern in 2 1/2 hr., in how many hours will 5 such pipes fill it? {~9 * 2_1/2 / 5}
q: A man, failing in business, paid 80 ct. on each dollar of his indebtedness: how many dollars did I receive, if he owed me $60? {48}
sol: 80 cts. = $4/5. I received 60 times $4/5 = $48.
q: A grocer, failing, pays only 15 ct. on the dollar: how many dollars will a creditor receive to whom he owes $80? {12}
q: A trader, failing, pays 60 ct. on the dollar: how many dollars will a creditor receive to whom he owes $80? {48}
q: If a certain quantity of flour afford 8 five-cent loaves, how many ten-cent loaves will it furnish? {4}
sol: It will afford 5 times 8, or 40, one-cent loaves; and 1/10 of 40, or 4, ten-cent loaves.
q: If a certain quantity of flour afford 6 five-cent loaves, how many three-cent loaves will it furnish? {10}
q: If a sack of flour make 20 three-cent loaves, how many four-cent loaves will it make? {15} How many five-cent loaves? {12}
q: If a loaf weigh 8 oz. when flour is $3 a barrel, how many ounces should it weigh when flour is $4 a bbl.? {6} $5 a bbl.? {~24/5}
q: A loaf weighs 10 oz. when flour is $6 a bbl.: how many ounces should it weigh when flour is $5 a bbl.? {12}
q: If a loaf weigh 7 oz. when flour is 5 1/3 dollars a bbl.: how many ounces ought it to weigh when flour is 4 2/3 dollars a bbl.? {8}
q: If 5 men can do a piece of work in a certain time, how many can do a piece twice as large in 1/5 of the time? {50}
q: If 6 men can do a piece of work in 5 days, in what time can they do it, if they receive the assistance of 3 additional men when the work is half completed? {~5/2 + 6 * 5/2 / 9}
q: If 7 men can do a piece of work in 4 days, in what time can it be done, if 3 of the men leave when the work is half completed? {~2 + 7 * 2 / 4}
q: If the wages of 3 men for 5 days is $30, what will be the wages of 4 men for 7 da.? {56}
sol: The wages of 1 man for 5 days is 1/3 of $30 = $10, and the wages of 1 man for 1 day is 1/5 of $10 = $2; then, the wages of 1 man for 7 days is 7 times $2 = $14, and the wages of 4 men for 7 days is 4 times $14 = $56.
q: If 6 persons spend $36 in 8 days, how much, at that rate, would 5 persons spend in 12 da.? {45}
q: If 3 men can build 12 rd. of wall in 8 da., how many rd. can 5 men build in 3 da.? {~12 / 24 * 15}
q: If 6 horses eat 36 bu. of oats in 10 days, how many bu. will 5 horses eat in 9 da.? {27}
q: If 5 oxen eat 2 A. of grass in 6 days, in how many days will 12 oxen eat 8 A., the grass growing uniformly? {10}
q: If a family of 8 persons spend $400 in 5 mon., how much would maintain them 8 mon., if 3 more persons were added? {880}
q: If 10 oxen can be kept on 5 A. for 3 mon., how many sheep can be kept on 15 A. for 5 mon., if 7 sheep eat as much as 1 ox? {126}

== 63 | Ratio | Sharing by ratio
q: A and B rent a pasture for $25: A puts in 27 oxen, and B 180 sheep: what should each pay, supposing an ox to eat as much as 10 sheep? A? {15} B? {10}
sol: 180 sheep eat as much as 180 / 10 = 18 oxen. B should pay 18 / 27 = 2/3 as much as A; then, 3/3 + 2/3 = 5/3: 5/3 of what A should pay are $25: then, A should pay $15, and B $10.
q: A and B rent a pasture for $60; A puts in 14 horses, and B, 15 cows: what should each pay, if 2 horses eat as much as 3 cows? A? {35} B? {25}
q: A and B rent a pasture for $72: A puts in 8 horses, B 15 oxen and 120 sheep: what should each pay, if a horse eat as much as 20 sheep, and 2 horses as much as 3 oxen? A? {24} B? {48}
q: A and B rent a pasture for $35: A puts in 4 horses 2 wk.; B, 3 horses 4 wk.: what ought each to pay? A? {14} B? {21}
sol: 4 horses in 2 wk. eat the same as 1 horse in 4 times 2 = 8 wk.; and 3 horses in 4 wk. eat the same as 1 horse in 3 times 4 = 12 wk.; then, B ought to pay 12 / 8 = 3/2 as much as A, or $3 when A pays $2; whence, A pays $14, and B $21.
q: C and D join their stocks in trade; C puts in $50 for 4 mon., and D $60 for 5 mon.: they gain $45: what is the share of C? {18} D? {27}
q: Two masons, A and B, built a wall for $81; A sent 3 men for 4 da., and B 5 men for 3 da.: what ought A to receive? {36} B? {45}
q: A and B traded in company; A put in $2 as often as B put in $3; A's money was employed 5 mon., and B's 4 mon.: they gained $55: what was A's share? {25} B's? {30}
q: E and F rented a field for $27; E put in 4 horses for 5 mon., and F 10 cows for 6 mon.: what ought each to pay, if 2 horses eat as much as 3 cows? E? {9} F? {18}
q: M and N enter into partnership for one year. M puts in $600, and N, $900; they gain $300: after paying $150 expenses, what is M's share of the gain? {60} N's? {90}
q: At the beginning of the year, C went into business with a capital of $600: four months after, D formed a partnership with C, and put in $600: the gain for the year was $250: what was C's share? {150} D's? {100}
q: E and F entered into partnership for a year; E's capital was $1000, and F's three times as much; at the end of 8 months, F drew out $1000; the gain for the year was $770: what was E's share? {210} F's? {560}
q: The capital of a firm, consisting of A and B, was $2400; the gain for the year was $240, A's share being $20 more than B's: how much capital did A furnish? {1300} B? {1100}
q: The capital of a firm, consisting of C and D, was $980; C's capital was used 8 months, and D's 6 months, when the gain was equally divided: how much capital did C invest? {420} D? {560}
q: In a partnership, A's gain was $70, and B's $80. A's capital was employed 10 months, and B's 8 months: their joint capital was $1700: what was the original investment of A? {700} B? {1000}
q: The gain of a firm, consisting of E and F, was $840: E's stock was to F's as 2 to 3, and E's was in use 10 months, F's 12 months: what was E's share of the gain? {300} F's? {540}

== 64 | Percentage | Per cent as a fraction
note: Any per cent of a number is so many hundredths of it; thus, one per cent of a number is 1/100 of it.
q: What part is 2 per cent? {~2/100}
sol: 2 per cent is 2/100 = 1/50.
q: What part is 4 per cent? {~4/100} 5? {~5/100} 6? {~6/100} 8? {~8/100}
q: What part is 10 per cent? {~10/100} 12? {~12/100} 15? {~15/100}
q: What part is 16 per cent? {~16/100} 20? {~20/100} 24? {~24/100}
q: What part is 25 per cent? {~25/100} 28? {~28/100} 30? {~30/100}
q: What part is 32 per cent? {~32/100} 35? {~35/100} 36? {~36/100}
q: What part is 40 per cent? {~40/100} 45? {~45/100} 48? {~48/100}
q: What part is 50 per cent? {~50/100} 60? {~60/100} 70? {~70/100}
q: What part is 75 per cent? {~75/100} 80? {~80/100} 90? {~90/100}
q: What part is 2 1/2 per cent? {~2_1/2 / 100}
sol: 2 1/2 = 5/2. 1 per cent is 1/100; then, 1/2 per cent is 1/2 of 1/100 = 1/200, and 5/2 per cent is 5 times 1/200 = 1/40.
q: What part is 3 1/2 per cent? {~3_1/2 / 100} 6 1/4? {~6_1/4 / 100}
q: What part is 6 2/3 per cent? {~6_2/3 / 100} 7 1/2? {~7_1/2 / 100}
q: What part is 8 1/3 per cent? {~8_1/3 / 100} 12 1/2? {~12_1/2 / 100}
q: What part is 13 1/3 per cent? {~13_1/3 / 100} 16 2/3? {~16_2/3 / 100}
q: What part is 17 1/2 per cent? {~17_1/2 / 100} 18 3/4? {~18_3/4 / 100}
q: What part is 23 1/3 per cent? {~23_1/3 / 100} 31 1/4? {~31_1/4 / 100}

q: What part is 37 1/2 per cent? {~37_1/2 / 100} 43 3/4? {~43_3/4 / 100}
q: What part is 56 1/4 per cent? {~56_1/4 / 100} 62 1/2? {~62_1/2 / 100}
q: What part is 66 2/3 per cent? {~66_2/3 / 100}
q: What part is 87 1/2 per cent? {~87_1/2 / 100}

== 65 | Percentage | Per cent of a number
q: What is 4 per cent of 50? {2}
sol: 4 per cent is 1/25: 1/25 of 50 = 2.
q: What is 6 per cent of 50? {3} 100? {6}
q: What is 10 per cent of 20? {2} 30? {3}
q: What is 12 1/2 per cent of 24? {3} 48? {6}
q: What is 25 per cent of $32? {8} $80? {20}
q: What is 33 1/3 per cent of 51 bushels? {17}
q: What is 50 per cent of 14 horses? {7}
q: I bought a piece of cloth for $32, and sold it so as to gain 6 1/4 per cent: what did I gain? {2}
sol: 6 1/4 per cent is 1/16: I gained 1/16 of $32 = $2.
q: A grocer bought a bbl. of sugar for $10, and in selling it gained 10 per cent: how much did he gain? {1}
q: A farmer, having a flock of 40 sheep, lost 5 per cent of them: how many had he left? {38}
q: A flock of 50 sheep increases 10 per cent in one year: how many are then in the flock? {55}
q: A lady, having $20, spent 10 per cent for muslin, and 10 per cent of the remainder for calico: how much did she pay for both? {~3_4/5}
q: I paid 30 ct. per yd. for cambric: at what price must I sell it, to make 10 per cent? {33}
sol: 10 per cent is 1/10. I must gain 1/10 of 30 ct. = 3 ct.; then I must sell it for 30 ct. + 3 ct. = 33 ct.
q: To make 12 1/2 per cent profit, what must muslin be sold at that cost 8 ct. per yd.? {9} 16 ct.? {18}
q: To make 8 1/3 per cent profit, what must sugar be sold for that cost 6 ct. per lb.? {~6_1/2} 18 ct.? {~19_1/2}
q: To make 25 per cent profit, what must delaine be sold for that cost 12 ct. per yd.? {15} 16 ct.? {20} 20 ct.? {25} 35 ct.? {~43_3/4}

== 66 | Percentage | A fraction as per cent
q: How many per cent is 1/2? {50}
sol: It is 1/2 of 100 = 50 per cent.
q: How many per cent is 1/3? {~1/3 * 100} 2/3? {~2/3 * 100} 1/4? {~1/4 * 100}
q: How many per cent is 3/4? {~3/4 * 100} 1/5? {~1/5 * 100} 2/5? {~2/5 * 100}
q: How many per cent is 3/5? {~3/5 * 100} 4/5? {~4/5 * 100} 1/6? {~1/6 * 100}
q: How many per cent is 1/8? {~1/8 * 100} 3/8? {~3/8 * 100} 5/8? {~5/8 * 100}
q: How many per cent is 1/10? {~1/10 * 100} 3/10? {~3/10 * 100} 7/10? {~7/10 * 100}
q: How many per cent is 9/10? {~9/10 * 100} 1/12? {~1/12 * 100} 5/12? {~5/12 * 100}
q: How many per cent is 1/15? {~1/15 * 100} 1/16? {~1/16 * 100} 3/16? {~3/16 * 100}
q: How many per cent is 5/16? {~5/16 * 100} 1/20? {~1/20 * 100} 3/20? {~3/20 * 100}
q: How many per cent is 7/20? {~7/20 * 100} 9/20? {~9/20 * 100} 11/20? {~11/20 * 100}
q: How many per cent is 1/25? {~1/25 * 100} 2/25? {~2/25 * 100} 3/25? {~3/25 * 100}
q: How many per cent is 4/25? {~4/25 * 100} 6/25? {~6/25 * 100} 7/25? {~7/25 * 100}
q: How many per cent is 8/25? {~8/25 * 100} 9/25? {~9/25 * 100} 11/25? {~11/25 * 100}
q: How many per cent is 7/30? {~7/30 * 100} 2/35? {~2/35 * 100} 9/40? {~9/40 * 100}
q: How many per cent is 11/40? {~11/40 * 100} 6/45? {~6/45 * 100} 5/48? {~5/48 * 100}
q: How many per cent is 1/50? {~1/50 * 100} 3/50? {~3/50 * 100} 7/50? {~7/50 * 100}
q: How many per cent is 9/50? {~9/50 * 100} 1/60? {~1/60 * 100} 1/75? {~1/75 * 100}
q: How many per cent is 15/24? {~15/24 * 100} 18/24? {~18/24 * 100} 21/24? {~21/24 * 100}
q: How many per cent is 18/32? {~18/32 * 100} 22/32? {~22/32 * 100} 26/32? {~26/32 * 100}
q: How many per cent is 6/36? {~6/36 * 100} 18/36? {~18/36 * 100} 30/36? {~30/36 * 100}
q: How many per cent is 20/48? {~20/48 * 100} 28/48? {~28/48 * 100} 36/48? {~36/48 * 100}
q: How many per cent is 44/48? {~44/48 * 100} 45/48? {~45/48 * 100} 12/80? {~12/80 * 100}

== 67 | Percentage | What per cent?
q: Two is what per cent of 5? {40}
sol: 2 is 2/5 of 5: 2/5 = 40/100, or 40 per cent.
q: Three is what per cent of 5? {60} Of 12? {25}
q: Four is what per cent of 8? {50} Of 32? {~4 / 32 * 100}
q: Five dollars are what per cent of $20? {25} $30? {~5 / 30 * 100}
q: Eight men are what per cent of 160 men? {5}
q: There are 36 pupils enrolled in a certain school; if 9 are absent, what is the per cent of absence? {25}
q: Out of 60 pupils in a school, 20 study geography: what per cent is that of the whole number? {~100/3}
q: There are 45 pupils enrolled in a certain primary school; on a certain day only 30 of them were present, what was the per cent of attendance? {~200/3}
q: A grocer buys coffee at 25 ct. per pound, and sells it at a profit of 5 ct. per pound: what is his gain per cent? {20}
q: A merchant bought cloth at $5 per yard, and sold it at $7 per yard: what per cent did he gain? {40}
sol: He gained $7 - $5 = $2: $2 are 2/5 of the cost; 2/5 are 40 per cent.
q: James bought a melon for 4 ct., and sold it for 5 ct.: what per cent did he gain? {25}
q: An orange was bought for 5 ct., and sold for 4 ct.: what was the per cent of loss? {20}
q: Thomas bought a watch for $4, and sold it for $6: what per cent did he gain? {50}
q: Henry bought a horse for $15, and sold it for $24: what per cent did he gain? {60}
q: A keg of wine holding 5 gal., lost 6 qt. by leakage: what was the loss per cent? {30}
q: By selling citrons at 6 ct. each, John cleared 1/5 of the first cost: what per cent would he have cleared by selling them at 8 ct. each? {60}
q: A merchant bought cloth at the rate of 6 yd. for $3, and sold it at the rate of 5 yd. for $4: what per cent did he gain? {60}
q: Henry sold melons at 8 ct. each, and lost 1/5 of the first cost: what per cent would he have lost by selling them at 3 for 25 ct.? {~50/3} What per cent would he have gained by selling them at 2 for 25 ct.? {25}
q: James bought a lot of lemons, at the rate of 2 for 3 ct.; but, finding them damaged, he sold them at the rate of 3 for 2 ct.: what per cent did he lose? {~500/9}

== 68 | Percentage | Finding the cost
q: Sold a watch for $12, and gained 20 per cent: what was the cost? {10}
sol: 20 per cent is 1/5; 5/5 + 1/5 = 6/5; 6/5 of the cost are $12; then, the cost is $10.
q: I sold a piece of cloth for $26, and gained 30 per cent: what did the cloth cost me? {20}
q: If there is a gain of 40 per cent when muslin is sold at 14 ct. a yd., what is the cost price? {10}
q: By selling a horse for $81, there was a gain of 12 1/2 per cent: what did the horse cost? {72}
q: Sold a horse for $63, and lost 10 per cent: what was the cost? {70}
q: Thomas sold a watch for $21, and gained 75 per cent: what did he pay for it? {12}
q: James sold 10 oranges for 40 ct., and gained 33 1/3 per cent: how much did each orange cost? {3}
q: Sold a watch for $10, by which I gained 25 per cent: what would I have gained by selling it for $12? {4}
q: By selling muslin at 7 ct. per yd., there is a loss of 12 1/2 per cent: what will be the loss per cent by selling it at 6 ct. per yd.? {25}
q: By selling my horse for $35, there was a loss of 16 2/3 per cent: what would have been the gain per cent by selling him for $63? {50}
q: I bought a watch for $18, which was 20 per cent more than its value: I sold it at 10 per cent less than its value: what sum did I lose? {~4_1/2}
q: A sold B a watch for $60, and gained 20 per cent: afterward B sold it and lost 20 per cent on what it cost him: how much did B lose more than A gained? {2}
q: A watch-maker sold two watches for $30 each: on one he gained 25 per cent, and on the other he lost 25 per cent: how much did he lose by the sale? {4}
q: By selling 4 apples for 3 ct., a dealer gains 50 per cent: what per cent will he gain by selling them at the rate of 5 for 4 ct.? {60}
q: Sold 5 lemons for 4 ct., and lost 20 per cent: what per cent did I lose by selling 6 for 5 ct.? {~50/3}
q: Two-thirds of 10 per cent of 60 are 1/2 of what per cent of 40? {20}
q: One-half of 3/5 of 50 per cent of 120 is 10 less than 20 per cent of what? {140}
q: One-fourth of 2/3 of 60 per cent of 10 is 5 less than 50 per cent of what? {12}
q: Three-fourths of 2/5 of 75 per cent of 15 are 1 3/5 more than 50 per cent of what? {~(27/8 - 8/5) * 2}
q: One and one-half times 2/3 of 25 per cent of 4 are 25 per cent of 1/2 of what number? {8}

== 69 | Percentage | Per cents off
note: Allowances made to purchasers by wholesale dealers are called per cents off. 10 per cent off means 10 per cent, or 1/10, from the retail, or list price. 20 and 5 off means 20 per cent off, and 5 per cent taken from the remainder.
q: The price of a book was $3, but the book-seller allowed 20 per cent off: how many dollars was paid for the book? {2.40}
q: The amount of a bill of goods was $125, but the dealer allowed 1/5 off: what was paid for the goods? {100}
q: A bill of goods amounted to $840, and the dealer gave 1/6 off: what was paid for the goods? {700}
q: A lot of books amounted to $500: the book-seller allowed 20 and 5 off: what was paid for the books? {380}
q: A bill of goods amounted to $1200, and the dealer allowed 1/6 and 5 off: what was paid for the goods? {950}
q: Paid $4.80 for a book, the book-seller having allowed me 20 per cent off: what was the retail price? {6}
q: Paid $720 for a bill of goods, the dealer having allowed 1/3 off: what was the retail price? {1080}
q: Paid $133 for goods, the dealer having allowed 20 and 5: what was the list price? {175}
q: Paid $399 for goods, the dealer having allowed 1/8 and 5 per cent for cash, and sold them at the list or retail price: what did I get for the goods? {480}
q: The retail price of a bill of goods was $70; the dealer allowed 20 and 5 on $50, and 10 and 5 on the remainder of the amount: how many dollars was paid for the goods? {55.10}

== 70 | Percentage | Commission
note: Commission is the sum allowed to agents for buying, selling, or transacting other business. Money answers are in dollars: type 12.50 for twelve dollars and fifty cents.
q: An agent sold a house for $4000, charging 2 1/2 per cent commission: what was his commission? {100}
q: An agent sells goods to the amount of $560, at 5 per cent commission: what is the commission? {28}
q: A commission merchant sells 1000 bu. of corn, for 50 ct. a bu., and charges 2 1/2 per cent for selling: how many dollars is his commission? {12.50}
q: An agent sells 5 village lots, for $300 each, charging 5 per cent: what is his commission? {75} How much does the owner receive? {1425}
q: A farmer sends 800 bu. of wheat to a commission merchant, who sells it at $1.25 a bu., and charges 2 per cent commission: how much does the farmer receive for his wheat? {980}
q: A collector received $100 for collecting bills, at 5 per cent commission: how much did he collect? {2000}
q: A merchant allowed a collector 10 per cent for collecting bills: the commission was $60: how much was collected? {600}
q: A commission merchant sold grain for $1000, charging 5 per cent, and invested the remainder in shares, at $50 a share, without extra charge: how many shares did he buy? {19}

== 71 | Percentage | Insurance
note: A Policy is the written agreement of an Insurance Company to pay a certain sum of money in case of loss by fire, water, accident, or other hazard. The Premium is the sum paid for insurance.
q: What is paid for an insurance policy of $2000, at 1/2 per cent premium? {10}
q: A house worth $3000 is insured for 1/2 its value, at 2 per cent premium: what is the insurance? {30}
q: What does it cost to insure property worth $2400, for 2/3 its value, at 1 per cent, the policy costing $1.50? {17.50}
q: A man insured his house for $2500, and his furniture for $1500, at a premium of 3/4 per cent: what did he pay? {30}
q: A man's house was worth $1800, and his furniture, $1200: he insured both at 2/3 their value, paying 1 per cent premium on the house, 1/2 per cent premium on the furniture, and $1 for the policy: how much did he pay? {17}
q: A man's house was worth $2600, and his furniture, $1500: he insured the house at 1/2 its value, and the furniture at 2/3: he paid 2 per cent premium on the house, 1 per cent on the furniture, and $1.50 for the policy: how much did he pay? {37.50}

== 72 | Percentage | Interest for years
note: Interest is money paid for the use of money. The Principal is the sum of money which is loaned. The Amount is the principal and interest added together.
q: What is the interest of $2 for 3 yr., at 5 per cent? In dollars? {0.30}
sol: The interest for 3 yr. is 3 times 5 = 15 per cent; 15 per cent is 3/20; 3/20 of $2 = 30 ct.
q: Find the interest of $5 for 2 yr., at 6 per cent. {0.60}
q: Find the interest of $8 for 5 yr., at 5 per cent. {2}
q: Find the interest of $20 for 3 yr., at 8 per cent. {4.80}
q: Find the interest of $25 for 6 yr., at 4 per cent. {6}
q: Find the interest of $40 for 4 yr., at 5 per cent. {8}
q: Find the interest of $50 for 3 yr., at 6 per cent. {9}
q: Find the interest of $60 for 2 yr., at 7 per cent. {8.40}
q: Find the interest of $75 for 3 yr., at 4 per cent. {9}
q: Find the interest of $80 for 5 yr., at 9 per cent. {36}

== 73 | Percentage | Interest for months and days
note: In these questions a month counts as 30 days.
q: Find the interest of $50 for 6 mo., at 6 per cent. {1.50}
sol: 6 mo. are 1/2 yr.; the interest for 1/2 yr. is 1/2 of 6 per cent = 3 per cent; 3 per cent is 3/100; 3/100 of $50 = $1 and 50 ct.
q: Find the interest of $60 for 4 mo., at 5 per cent. {1}
q: Find the interest of $80 for 7 mo., at 6 per cent. {2.80}
q: Find the interest of $40 for 9 mo., at 8 per cent. {2.40}
q: Find the interest of $75 for 8 mo., at 9 per cent. {4.50}
q: What is the interest of $120 for 6 mo. 15 da., at 6 per cent? {3.90}
sol: 6 mo. 15 da. are 13/24 yr.; the interest for 13/24 yr. is 13/24 of 6 per cent = 13/4 per cent; 13/4 per cent is 13/400; 13/400 of $120 = $3.90.
q: What is the interest of $180 for 10 mo. 10 da., at 4 per cent? {6.20}
q: What is the interest of $45 for 11 mo. 23 da., at 8 per cent? {3.53}
sol: The interest of $45 for 1 year is $3.60; for 1 month, 1/12 of $3.60 = 30 ct.; and for 1 day, 1/30 of 30 ct. = 1 ct. The interest for 11 months is, therefore, $3.30; for 23 days, 23 ct.; and the total interest is $3.53.
q: What is the interest of $200 for 4 mo. 24 da., at 6 per cent? {4.80}
q: What is the interest of $480 for 9 mo. 18 da., at 5 per cent? {19.20}
q: What is the interest of $360 for 5 mo. 19 da., at 5 per cent? {8.45}
q: What is the interest of $144 for 8 mo. 25 da., at 4 per cent? {4.24}
q: What is the interest of $40 for 1 yr. 4 mo., at 6 per cent? {3.20}

q: What is the interest of $60 for 2 yr. 3 mo., at 5 per cent? {6.75}
q: What is the interest of $75 for 1 yr. 3 mo. 6 da., at 4 per cent? {3.80}
q: What is the amount of $25 for 3 yr., at 4 per cent? {28}
q: What is the amount of $40 for 2 yr., at 5 per cent? {44}
q: What is the amount of $55 for 3 yr., at 8 per cent? {68.20}
q: What is the amount of $30 for 1 yr., 4 mo., at 7 per cent? {32.80}
q: What is the amount of $50 for 2 yr. 3 mo. 6 da., at 6 per cent? {56.80}
q: What is the amount of $90 for 1 yr. 3 mo. 6 da., at 8 per cent? {99.12}

== 74 | Percentage | Finding the principal
q: The interest of a certain principal for 2 yr., at 6 per cent, is $3: what is the principal? {25}
sol: The interest is 12 per cent = 3/25; then, 3/25 of the principal are $3; whence the principal is $25.
q: The interest of a certain principal for 3 yr., at 4 per cent, is $6: what is the principal? {50}
q: What principal at interest for 4 yr., at 5 per cent, will produce $12 interest? {60}
q: What principal at interest for 5 yr., at 8 per cent, will produce $30 interest? {75}
q: What principal at interest for 4 yr., at 7 1/2 per cent, will produce $42 interest? {140}
q: What principal at interest for 2 yr. 6 mo., at 6 per cent, will produce $36 interest? {240}
q: What principal at interest for 3 yr. 4 mo., at 6 per cent, will produce $70 interest? {350}
q: A father wishes to place such a sum at interest, at 5 per cent, as will produce for his son an annual income of $200: what sum must he invest? {4000}

== 75 | Percentage | Principal from the amount
q: What principal on interest for 2 yr., at 5 per cent, will amount to $55? {50}
sol: The interest is 10 per cent = 1/10; then, 10/10 + 1/10 = 11/10; 11/10 of the principal are $55; whence the principal is $50.
q: What principal on interest, at 6 per cent, for 3 yr., will amount to $236? {200}
q: What principal on interest, at 5 per cent, for 4 yr., will amount to $600? {500}
q: What principal on interest, at 10 per cent, for 5 yr., will amount to $375? {250}
q: What principal on interest, at 6 per cent, for 5 yr., will amount to $390? {300}
q: The amount due on a note which has been on interest 3 yr. 4 mo., at 6 per cent, is $30: what is the face of the note? {25}
q: The amount of two-fifths of A's money on interest for 2 yr. 6 mo., at 8 per cent, is $60: what is his whole principal? {125}

== 76 | Percentage | Finding the time
q: In what time, at 6 per cent, will $50 give $10 interest? How many years? {~10/3}
sol: The interest for 1 yr. is $3; then, the time will be as many years as $3 are contained times in $10, which are 3 1/3 = 3 yr. 4 mo.
q: In what time, at 5 per cent, will $40 give $8 interest? Years? {4}
q: In what time, at 8 per cent, will $75 give $15 interest? Years? {~5/2}
q: In what time, at 10 per cent, will $60 give $16 interest? Years? {~8/3}
q: In what time, at 5 per cent, will $140 give $24 interest? Years? {~24/7}
q: In what time, at 6 per cent, will $25 give $10 interest? Years? {~20/3}
q: In what time, at 4 per cent, will any given principal double itself? Years? {25}
sol: Any principal will double itself in as many years as 4 per cent is contained times in 100 per cent, which are 25.
q: In what time will any given principal double itself, at 2 per cent? {50} At 3 per cent? {~100/3} At 5 per cent? {20} At 6 per cent? {~100/6} At 7 per cent? {~100/7} At 8? {~100/8} At 10? {10} At 12? {~100/12}
q: In what time will any given principal treble itself, at 5 per cent? {40}
q: In what time will any given principal treble itself, at 8 per cent? {25} At 10 per cent? {20}

== 77 | Percentage | Finding the rate
q: At what per cent will $200, in 2 yr., give $24 interest? {6}
sol: The interest for 1 yr. is 1/2 of $24 = $12; this is 12/200 = 3/50 of the principal; 3/50 are 6 per cent.
q: At what per cent will $50 in 5 yr., give $20 interest? {8}
q: At what per cent will $75 in 3 yr., give 11 1/4 dollars interest? {5}
q: At what per cent will $300 in 3 yr., give $63 interest? {7}
q: At what per cent will $300 in 2 yr. 3 mo., give $54 interest? {8}
q: At what per cent will $240 in 3 yr. 4 mo., give $56 interest? {7}
q: At what per cent will $200 in 4 yr., amount to $240? {5}
q: At what per cent will $150 in 3 yr. 8 mo., amount to $183? {6}
q: At what per cent will any given principal double itself in 20 yr.? {5}
sol: Any principal will double itself at 1/20 of 100 = 5 per cent.
q: At what per cent will any given principal double itself in 12 yr.? {~100/12} In 10 yr.? {10} 8 yr.? {~100/8} 5 yr.? {20} 4 yr.? {25} 2 yr.? {50}

== 78 | Percentage | Discount and present worth
note: Discount corresponds to interest, but is paid in advance; present worth corresponds to principal; and the sum given, to amount.
q: What is the present worth and discount, at 5 per cent, of a note for $72, due 4 yr. hence? Present worth? {60} Discount? {12}
sol: The discount is 20 per cent = 1/5; 5/5 + 1/5 = 6/5; then, 6/5 of the present worth = $72; whence the present worth is $60, and the discount $12.
q: What is the present worth and discount, at 6 per cent, of a note for $520, due 5 yr. hence? Present worth? {400} Discount? {120}
q: What is the present worth and discount, at 4 per cent, of a note for $30, due 5 yr. hence? Present worth? {25} Discount? {5}
q: What is the present worth and discount, at 10 per cent, of a note for $750, due 5 yr. hence? Present worth? {500} Discount? {250}
q: What is the discount, at 5 per cent, of a note for $345, due 3 yr. hence? {45}
q: What is the discount, at 6 per cent, of a note for $496, due 4 yr. hence? {96}
q: What is the discount, at 5 per cent, of a note for $24, due 4 yr. hence? {4}
q: What is the present worth, at 6 per cent, of a note for $65, due 5 yr. hence? {50}
q: What is the present worth, at 5 per cent, of a note for $55, due 5 yr. hence? {44}
q: What is the present worth, at 6 per cent, of a note for $77, due 6 yr. 8 mo. hence? {55}
q: What is the discount, at 7 per cent, of a note for $1000, due in 3 yr. 6 mo.? {~49000/249}
q: What is the discount, at 8 per cent, of a note for $900, due in 2 yr. 9 mo.? {~9900/61}

== 79 | Percentage | Parts and rates
q: At 6 per cent, for 4 yr. 2 mo., what part of the principal is equal to the interest? {~1/4}
q: At 5 per cent, for 5 yr., what part of the amount is equal to the interest? {~1/5}
q: When the interest for 2 yr. = 1/5 of the principal, what is the rate per cent? {10}
q: When the interest for 2 yr. 6 mo. = 1/4 of the principal, what is the rate per cent? {10}
q: When the interest, at 10 per cent, = 3/5 of the principal, what is the time? Years? {6}
q: When 3 times the yearly interest = 9/25 of the principal, what is the rate per cent? {12}
q: When 1/5 of the interest for 2 yr. = 4/25 of the principal, what is the rate per cent? {40}
q: When 5/8 of the interest for 3 yr. = 9/80 of the principal, what is the rate per cent? {6}
q: The interest for 8 mo. is 1/25 of the principal: what is the interest of $200 for 1 yr. 4 mo.? {16}
q: If the interest for 1 yr. 4 mo., is 3/25 of the principal, what is the interest of $100 for 1 yr. 8 mo. 12 da.? {15.30}
q: In what time will any principal, at 5 per cent, give the same interest as in 4 yr., at 10 per cent? Years? {8}
q: The interest of A's and B's money for 3 1/3 yr., at 5 per cent, is $40, and A's money is twice that of B's: what sum has each? A? {160} B? {80}
q: Twice A's money = 3 times B's; and the interest, at 7 per cent for 1 2/5 yr., of what they both have, is $49: how much money has each? A? {300} B? {200}
q: One half of A's money = 2/3 of B's; and the interest of 3/4 of A's and 1/2 of B's money, at 4 per cent, for 2 yr. 3 mo., is $18: how much has each? A? {~1600/9} B? {~400/3}

== 80 | Problems | Problems
q: If 12 peaches are worth 84 apples, and 8 apples are worth 24 plums, how many plums shall I give for 5 peaches? {105}
q: Divide 32 peaches among Mary, James, and Lucy, giving Mary 2 more than Lucy, and Lucy 3 more than James. Mary? {13} James? {8} Lucy? {11}
q: Five times a certain number is 16 more than 3 times the same number: what is the number? {8}
q: A has 1/2 as much money as B; B has 1/3 as much as C; C has $15 more than A: how much has each? A? {3} B? {6} C? {18}
q: If 3/4 of James's money be increased by $6, the sum will equal what Thomas has; both together have $34: how much has each? James? {16} Thomas? {18}
q: A farmer sold 3/8 of his sheep, but soon afterward purchased 4/9 as many as he had left; he then had 65 sheep: how many sheep had he at first? {72}
q: If 3 men can perform a piece of work in 4 days, working 10 hours a day, in how many days can 8 men perform the same job, working 6 hours a day? {~5/2}
q: Thomas bought a number of apples, at 2 for 3 ct., and as many more at 2 for 5 ct.; he sold all at the rate of 3 for 7 ct.: how much per dozen did he gain? Cents? {4}
q: A, B, and C rent a pasture for $92; A puts in 4 horses for 2 mo.; B, 9 cows for 3 mo.; and C, 20 sheep for 5 mo.: what should each pay, if 2 horses eat as much as 3 cows, or as much as 10 sheep? A? {16} B? {36} C? {40}
q: A father who had as many sons as daughters, divided $20 among them, giving to each daughter $2, and to each son $3: how many children had he? {8}
q: A gentleman meeting some beggars, found that if he gave each of them 3 ct. he would have 12 ct. left, but if he gave each of them 5 ct. he would not have money enough by 8 ct.: how many beggars were there? {10}
sol: To give each beggar 5 ct. took 5 - 3 = 2 ct. more than to give him 3 ct.; to give all the beggars 5 ct. each took 12 + 8 = 20 ct. more than to give them 3 ct. each; then, there were as many beggars as 2 ct. are contained times in 20 ct., which are 10.
q: A father wishes to distribute some peaches among his children; if he give each of them 2 peaches he will have 9 left, but if he give each 4 peaches he will have 3 left: how many children has he? {3}
q: A hare is 10 leaps before a hound, and takes 4 leaps while the hound takes 3; but 2 of the hound's leaps equal 3 of the hare's: how many leaps must the hound take to catch the hare? {60}
sol: One of the hound's leaps = 3/2 of the hare's, and 3 of them = 4 1/2 leaps of the hare; then, in taking 3 leaps, the hound gains on the hare 4 1/2 - 4 = 1/2 a leap. Since the hound gains 1/2 a leap in taking 3 leaps, he gains 1 leap in taking 2 times 3 = 6 leaps, and he gains 10 leaps in taking 10 times 6 = 60 leaps.
q: Henry is 7 steps ahead of John, and takes 6 steps while John takes 5; but 4 of John's steps equal 5 of Henry's: how many steps must John take to overtake Henry? {140}
q: If 1 ox is worth 8 sheep, and 3 oxen are worth 2 horses, what is the value of 1 horse, if a sheep is worth $5? {60}
q: A and B had 24 ct.; B said to A, "Give me 2 ct. and I shall have as much money as you have now": how many cents had each? A? {13} B? {11}
q: The age of A is 1/2 the age of B; twice the age of A is 1/3 the age of C; C is 20 yr. older than B: what is the age of each? A? {5} B? {10} C? {30}
q: If 2/3 of A's money equals 4/5 of B's, and 3/4 of their difference is $15: how much money has each? A? {120} B? {100}
q: If 10 gal. of water per hour run into a vessel containing 15 gal., and 17 gal. run out in 2 hr.: how long will the vessel be in filling? Hours? {10}
q: Charles bought a number of eggs at 2 ct. each, and twice as many at 3 ct. each; he sold them at the rate of 3 for 10 ct.: what per cent did he gain? {25}
q: Mary wishes to divide some cherries among her playmates; she finds if she give each of them 5 she will have 21 left, but if she give each 8 she will have none left: what is the number of her playmates? {7}
q: Henry is 30 steps before John, but John takes 7 steps while Henry takes 5: supposing the length of their steps to be equal, how many steps must John take to overtake Henry? {105}
q: My chain cost 2/7 as much as my watch; 3 times the price of my chain and twice the price of my watch are $100: what did each cost? Chain? {10} Watch? {35}
q: A can do a piece of work in 4 1/2 days; A and B together in 2 4/7 days: in what time can B do it alone? Days? {6}
q: I bought a number of pears at 2 for 1 ct., and as many more at 4 for 1 ct.; by selling 5 for 3 ct. I gained 18 ct.: how many pears did I buy? {80}
q: A note for $50, bearing interest at 6 per cent, and due in 3 years, was disposed of by the holder for $50, 2 years before it was due: what rate of interest did the buyer receive for his money? {6|9}
q: A lady wished to buy a certain number of yards of silk for a dress: if she paid $1 a yard she would have $5 left, but if she paid $1 1/2 a yard, it would take all her money: how many yards did she want? {10}
q: If $5 be taken from 2/5 of A's money, the remainder will equal B's; both together have $51: how much has each? A? {40} B? {11}
q: If 2/3 of the gain be 4/15 of the selling price, for how much will 3 3/4 yards of cloth be sold, that cost $4 a yard? {25}
q: A hare is 100 leaps before a hound, and takes 5 leaps while the hound takes 3; but 3 leaps of the hound equal 10 leaps of the hare: how many leaps must the hound take to catch the hare? {60}
q: Thomas's age is 3 times that of James, and the difference of their ages is 10 years: how old is each? Thomas? {15} James? {5}
q: John started from C the same time that George started from D; when they met, 3/7 of the distance John had traveled was 4/5 of the distance George had traveled; from C to D is 86 miles: how far had each traveled? John? {56} George? {30}
q: I sell a certain kind of cloth for 24 cents a yard, and make 20 per cent; if I could buy it for 25 per cent less, and should sell it at 30 cents a yard, how much greater would be my profit? Cents a yard? {11}
q: If I sell a lot of eggs at 6 ct. a dozen, I will lose 12 ct., but if I sell them at 10 ct. a dozen, I will gain 18 ct.: what did they cost a dozen? Cents? {~38/5}
q: The age of A is twice the age of B, and 3/5 of B's age + 44 years equals 2 1/2 times the age of A: what is the age of each? A? {20} B? {10}
q: Three towns, A, B, and C, are situated on the same road; the distance from A to B is 24 miles, and 7/8 of the distance from A to B equals 3/7 of the distance from B to C: how far is it from A to C? Miles? {73}
q: A, B, and C can do a piece of work in 4 days, A and B in 8 days, B and C in 6 days: in what time can each do it alone? A? {12} B? {24} C? {8}
q: A provision dealer bought a number of ducks, at the rate of 6 for $1; and twice as many chickens, at the rate of 8 for $1; by selling them at the rate of 2 chickens and 1 duck for $1/2, he gained $2 1/2: how many of each did he buy? Ducks? {30} Chickens? {60}
q: To buy a certain number of oranges, at 8 ct. each, requires 6 cents more than all the money James has; but if he buy the same number of lemons, at 3 ct. each, he will have 29 ct. left: how much money has he? Cents? {50}
q: A rides 10 miles in 1 1/4 hours, and B, 8 miles in 1 3/5 hours: how far will B travel while A is traveling 18 miles? Miles? {~45/4}
q: If A had 1/2 as many dollars more, and $2 1/2 besides, he would have $40: how many has he? {25}
q: A person having three sons, A, B, and C, willed 2/7 of his estate to A, 1/3 to B, and the remainder to C; the difference of the legacies of A and C was $160: what amount did each receive? A? {480} B? {560} C? {640}
q: A man and his wife consume a sack of meal in 15 days; after living together 6 days, the woman alone consumed the remainder in 24 days: how long would a sack last either of them alone? Man? {24} Woman? {40}
q: If sugar, worth 3 1/2 cents a pound, be mixed in equal quantities with sugar worth 6 1/2 cents a pound, how many pounds of the mixture will be worth $1? {20}
q: The age of A is 5 times the age of B, and the age of B is twice the age of C. A is 45 years older than C: what is the age of each? A? {50} B? {10} C? {5}
q: The age of Mary is 3/5 of the age of Ella, and the sum of their ages is 6 years less than twice the age of Ella: what is the age of each? Mary? {9} Ella? {15}
q: A and B together can do a piece of work in 16 days; they work 4 days, when A leaves, and B finishes the work in 36 days more: in how many days can each do it? A? {24} B? {48}
q: A man bought 84 eggs, which he intended to sell as follows: 3 dozen, at 1 ct. apiece; 2 dozen, at 4 eggs for 3 ct.; and the rest at 4 eggs for 5 ct.: but, having mixed them, how must he sell them per dozen to get the intended price? Cents? {12}
q: A man agreed to pay a laborer $2 for every day he worked; the laborer, for every day he was idle, was to forfeit $1; at the expiration of 20 days he received $25: how many days was he idle? {5}
sol: If the laborer had worked every day he would have received 20 times $2 = $40; then, he lost by being idle $40 - $25 = $15. Every day he was idle he lost $2 + $1 = $3; then, he was idle as many days as $3 are contained times in $15, which are 5.
q: James was hired for 30 days; for every day he worked he was to receive 30 cents, and for every day he was idle he was to pay 20 cents for his board; at the end of the time he received $5: how many days did he work? {22}
q: There are two pieces of muslin, each containing the same number of yards; to buy the first, at 12 1/2 cents a yard, requires 40 cents more than to buy the second, at 10 cents a yard: how many yards in each? {16}
q: Noah is 35 steps ahead of Moses, and takes 7 steps while Moses takes 5; but 4 of Moses's steps equal 7 of Noah's: how many steps must Moses take to overtake Noah? {100}
q: If 1 man does as much work as 2 women, and 1 woman as much as 3 boys: how many men would it take to do in 1 day what 12 boys are a week (6 working days) in doing? {12}
q: A farmer's sheep are in three fields; the second contains 4 times as many as the first; the third contains 3 times as many as the second, and 70 more than both the first and second: how many sheep are there in each field? First? {10} Second? {40} Third? {120}
q: A laborer engaged to work 24 days, for $2 a day and his board; he agreed to pay 50 cents a day for his board when he did not work; at the end of the time he received $38: how many days did he work? {20}
q: Three persons, A, B, and C, are to share a certain sum of money, of which A's part is $12; this is 2/7 of the sum of the shares of B and C; 3/8 of C's share is equal to 3/10 of the sum of the shares of A and B: what is the share of each? B? {18} C? {24}
q: For how much should a package of sugar weighing 6 6/7 lb. be sold, to gain 16 2/3 per cent, when sugar costs 8 cents a pound? Cents? {64}
q: Two men formed a partnership for 1 year; the first put in $100, and the second, $200: how much must the first put in at the end of 6 months, to entitle him to 1/2 the profit? {200}
q: If I sell my sugar at 9 cents a pound I will lose $1, but if I sell it at 12 cents a pound, I will gain 50 cents: how many pounds have I? {50}
q: B is pursuing A, who is some distance in advance; B goes 4 steps while A goes 5, but 3 of A's steps equal 2 of B's; B goes 36 steps before overtaking A: how many steps is A in advance of B? B's steps? {9}
q: John bought 5 oranges and James 4 oranges; they were then joined by Thomas, and each one ate an equal part of the oranges; when Thomas left, he gave them 9 cents: how should this be divided? John, cents? {6} James, cents? {3}

EOF

make-book.ps1: builds any book: -Book intellectual turns intellectual.txt into public\books\intellectual.json.

cat > /root/rays-rebuild/make-book.ps1 <<'EOF'
# Builds public/books/<id>.json from a hand-corrected book in source/<Book>.txt (format at the top of source/primary.txt).
# Generates every table exactly, works out {?} answers, and checks typed answers wherever the question is plain
# arithmetic ("How many are 3 and 5?", "One from 9?", "Nine and how many make 17?", "How many twos in 8?").
# Usage: powershell -ExecutionPolicy Bypass -File RaysArithmetic\tools\make-book.ps1 [-Book primary|intellectual|...]
param([string]$Book = 'primary')
$root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
$src = Get-Content "$root\source\$Book.txt" -Encoding UTF8
# the book's id, title, shelf line and color: "@book: primary1877 | Ray's New Primary Arithmetic | 1877 - Book One | #2f6f8f"
$head = $src | Where-Object { $_ -match '^@book: ' } | Select-Object -First 1
if (-not $head) { throw "source\$Book.txt has no @book: line" }
$bk = ($head -replace '^@book: ', '') -split '\s*\|\s*'
$script:errors = New-Object System.Collections.ArrayList

# ---------- numbers ----------
$ones = @{ naught = 0; zero = 0; one = 1; two = 2; three = 3; four = 4; five = 5; six = 6; seven = 7; eight = 8; nine = 9; ten = 10; eleven = 11; twelve = 12; thirteen = 13; fourteen = 14; fifteen = 15; sixteen = 16; seventeen = 17; eighteen = 18; nineteen = 19 }
$tens = @{ twenty = 20; thirty = 30; forty = 40; fifty = 50; sixty = 60; seventy = 70; eighty = 80; ninety = 90 }
$plural = @{ ones = 1; twos = 2; threes = 3; fours = 4; fives = 5; sixes = 6; sevens = 7; eights = 8; nines = 9; tens = 10 }
function WordNum([string]$w) {
  $w = $w.ToLower()
  if ($w -match '^\d+$') { return [int]$w }
  if ($w -eq 'one hundred' -or $w -eq 'hundred') { return 100 }
  if ($ones.ContainsKey($w)) { return $ones[$w] }
  if ($tens.ContainsKey($w)) { return $tens[$w] }
  if ($w -match '^(\w+)-(\w+)$' -and $tens.ContainsKey($Matches[1]) -and $ones.ContainsKey($Matches[2])) { return $tens[$Matches[1]] + $ones[$Matches[2]] }
  return $null
}
$numRx = '\b(?:\d+|one hundred|(?:twenty|thirty|forty|fifty|sixty|seventy|eighty|ninety)(?:-(?:one|two|three|four|five|six|seven|eight|nine))?|naught|zero|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|one|two|three|four|five|six|seven|eight|nine|ten)\b'

# Plain arithmetic in a question part -> its value, or $null when the part isn't plain arithmetic.
# Reads left to right, the way the book works them ("2 and 5 are 7; 7 less 3 are 4"); every x comes first in the book.
function Calc([string]$t) {
  $s = ' ' + $t.ToLower() + ' '
  $s = $s -replace '[?:]', ' ' -replace '\s*=\s*', ' ' -replace ',', ' '
  # "Twelve are how many times 3?" -> 12 / 3
  # "What are 2/3 of 9?" -> 6
  if ($s -match '^\s*(?:what (?:are|is)\s+)?(\d+)/(\d+) of (\d+)\s*$') { $v = [int]$Matches[3] * [int]$Matches[1]; if ($v % [int]$Matches[2]) { return $null }; return [int]($v / [int]$Matches[2]) }
  if ($s -match "^\s*($numRx)\s+(?:are|is) how many times\s+($numRx)\s*$") { $a = WordNum $Matches[1]; $b = WordNum $Matches[2]; if ($a % $b) { return $null }; return [int]($a / $b) }
  $s = $s -replace '\bare how many\b', ' ' -replace '\bhow many (are|is)\b', ' ' -replace '\bhow many\b', ' '
  # "N from M leaves how many" / "N from M" / "N taken away from M"
  if ($s -match "^\s*($numRx)\s+(?:taken\s+)?(?:away\s+)?from\s+($numRx)\s*(?:leaves)?\s*$") { return (WordNum $Matches[2]) - (WordNum $Matches[1]) }
  # "N and how many make M"
  if ($s -match "^\s*($numRx)\s+and\s+make\s+($numRx)\s*$") { return (WordNum $Matches[2]) - (WordNum $Matches[1]) }
  # "how many twos in 8"
  if ($s -match "^\s*(ones|twos|threes|fours|fives|sixes|sevens|eights|nines|tens)\s+in\s+($numRx)\s*$") { return [int]((WordNum $Matches[2]) / $plural[$Matches[1]]) }
  # "times is 2 contained in 4" / "2 in 4"
  if ($s -match "^\s*(?:times is\s+)?($numRx)\s+(?:contained\s+)?in\s+($numRx)\s*$") { return [int]((WordNum $Matches[2]) / (WordNum $Matches[1])) }
  $s = $s -replace '\bmultiplied by\b', ' x ' -replace '\bdivided by\b', ' / ' -replace '\btimes\b', ' x ' -replace '\btime\b', ' x ' -replace '\bplus\b', ' + ' -replace '\bminus\b', ' - ' -replace '\bless\b', ' - ' -replace '\band\b', ' + '
  $tok = @([regex]::Matches($s, "$numRx|[-+x/]") | ForEach-Object { $_.Value })
  $rest = ([regex]::Replace($s, "$numRx|[-+x/]", ' ')).Trim()
  if ($rest -or $tok.Count -lt 3 -or $tok.Count % 2 -eq 0) { return $null }
  $v = WordNum $tok[0]; if ($null -eq $v) { return $null }
  for ($i = 1; $i -lt $tok.Count; $i += 2) {
    $b = WordNum $tok[$i + 1]; if ($null -eq $b) { return $null }
    switch ($tok[$i]) { '+' { $v += $b } '-' { $v -= $b } 'x' { $v *= $b } '/' { if ($v % $b) { return $null }; $v = $v / $b } default { return $null } }
  }
  return [int]$v
}

# ---------- exact fractions ----------
# {~ 1/2 + 1/4} works the answer out exactly: whole numbers, a/b, mixed numbers written 1_3/4, + - * / and ( ).
# A fraction is written without spaces (3/4); division between numbers needs spaces (12 / 3).
# The answer is written the book's way: 3/4, 2 1/3, 5.
function Gcd([long]$a, [long]$b) { $a = [Math]::Abs($a); $b = [Math]::Abs($b); while ($b) { $t = $a % $b; $a = $b; $b = $t }; [long][Math]::Max($a, 1) }
function Rat([long]$n, [long]$d) { if ($d -lt 0) { $n = -$n; $d = -$d }; $g = Gcd $n $d; ,@([long]($n / $g), [long]($d / $g)) }
function RatStr($r) {
  $n = $r[0]; $d = $r[1]
  if ($d -eq 1) { return "$n" }
  $w = [long][Math]::Truncate($n / $d); $f = $n - $w * $d
  if ($w) { "$w $([Math]::Abs($f))/$d" } else { "$n/$d" }
}
function EvalFrac([string]$e) {
  $script:tk = @([regex]::Matches($e, '\d+_\d+/\d+|\d+/\d+|\d+|[-+*/()]') | ForEach-Object { $_.Value }); $script:ti = 0
  function Atom {
    $x = $script:tk[$script:ti]; $script:ti++
    if ($x -eq '(') { $v = Sum; $script:ti++; return ,$v }
    if ($x -match '^(\d+)_(\d+)/(\d+)$') { return ,(Rat ([long]$Matches[1] * [long]$Matches[3] + [long]$Matches[2]) ([long]$Matches[3])) }
    if ($x -match '^(\d+)/(\d+)$') { return ,(Rat ([long]$Matches[1]) ([long]$Matches[2])) }
    if ($x -match '^\d+$') { return ,(Rat ([long]$x) 1) }
    throw "bad token '$x' in $e"
  }
  function Prod {
    $v = Atom
    while ($script:ti -lt $script:tk.Count -and $script:tk[$script:ti] -match '^[*/]$') {
      $op = $script:tk[$script:ti]; $script:ti++; $b = Atom
      if ($op -eq '*') { $v = Rat ($v[0] * $b[0]) ($v[1] * $b[1]) } else { $v = Rat ($v[0] * $b[1]) ($v[1] * $b[0]) }
    }
    ,$v
  }
  function Sum {
    $v = Prod
    while ($script:ti -lt $script:tk.Count -and $script:tk[$script:ti] -match '^[-+]$') {
      $op = $script:tk[$script:ti]; $script:ti++; $b = Prod
      $n = $(if ($op -eq '+') { $v[0] * $b[1] + $b[0] * $v[1] } else { $v[0] * $b[1] - $b[0] * $v[1] })
      $v = Rat $n ($v[1] * $b[1])
    }
    ,$v
  }
  $r = Sum
  if ($script:ti -ne $script:tk.Count) { throw "couldn't read all of: $e" }
  RatStr $r
}

# ---------- the book's tables ----------
function Table([string]$op, [int]$n) {
  $f = New-Object System.Collections.ArrayList
  # t = the book's line, q = the same fact asked as a question (the app's drill and the voice use both)
  function F($t, $a, $b, $r) {
    $q = switch ($op) { 'add' { "How many are $a and $b?" } 'sub' { "$a from $b leaves how many?" } 'mul' { if ($a -eq 1) { "How many is 1 time $b?" } else { "How many are $a times $b?" } } 'div' { "How many times is $a contained in $b?" } }
    [void]$f.Add([ordered]@{ t = $t; q = $q; a = $a; b = $b; r = $r })
  }
  switch ($op) {
    'add' { foreach ($k in 1..10) { F "$n and $k are $($n + $k)" $n $k ($n + $k); if ($k -ne $n) { F "$k and $n are $($n + $k)" $k $n ($n + $k) } } }
    'sub' { F "$n from $n leaves 0" $n $n 0
            foreach ($k in 1..9) { $m = $n + $k; F "$n from $m leaves $k" $n $m $k; if ($k -ne $n) { F "$k from $m leaves $n" $k $m $n } } }
    'mul' { if ($n -eq 1) { foreach ($k in 2..10) { F "1 time $k is $k" 1 $k $k; F "$k times 1 are $k" $k 1 $k } }
            else { F "$n times 1 are $n" $n 1 $n; foreach ($k in 2..10) { F "$k times $n are $($k * $n)" $k $n ($k * $n); if ($k -ne $n) { F "$n times $k are $($k * $n)" $n $k ($k * $n) } } } }
    'div' { F "$n in $n, 1 time" $n $n 1
            foreach ($k in 2..10) { $m = $n * $k; F "$n in $m, $k times" $n $m $k; if ($k -ne $n) { F "$k in $m, $n times" $k $m $n } } }
  }
  return ,$f.ToArray()
}

# ---------- questions ----------
# display: the book's x and / become real signs; spoken: signs become words for the voice
$TIMES = " $([char]0x00D7) "; $DIV = " $([char]0x00F7) "; $MINUS = " $([char]0x2212) "   # plain-ASCII script: no BOM needed
function Display([string]$t) { ($t -replace '(?<=\d) x (?=\d)', $TIMES -replace '(?<=\d) / (?=\d)', $DIV -replace '(?<=\d) - (?=\d)', $MINUS) }
# fractions said the book's way: "3/4" -> "3 fourths", "2 1/2" -> "2 and 1 half"
$FRN = @{ 2 = 'half'; 3 = 'third'; 4 = 'fourth'; 5 = 'fifth'; 6 = 'sixth'; 7 = 'seventh'; 8 = 'eighth'; 9 = 'ninth'; 10 = 'tenth'; 11 = 'eleventh'; 12 = 'twelfth'; 13 = 'thirteenth'; 14 = 'fourteenth'; 15 = 'fifteenth'; 16 = 'sixteenth'; 17 = 'seventeenth'; 18 = 'eighteenth'; 19 = 'nineteenth'; 20 = 'twentieth'; 100 = 'hundredth' }
function FracWords([int]$n, [int]$d) {
  $name = $FRN[$d]; if (-not $name) { $name = "$($d)th" }
  if ($n -gt 1) { $name = $(if ($name -eq 'half') { 'halves' } else { $name + 's' }) }
  "$n $name"
}
function SayFractions([string]$t) {
  $t = [regex]::Replace($t, '(?<![\d/])(\d+) (\d+)/(\d+)(?![\d/])', { param($m) "$($m.Groups[1].Value) and $(FracWords $m.Groups[2].Value $m.Groups[3].Value)" })
  [regex]::Replace($t, '(?<![\d/])(\d+)/(\d+)(?![\d/])', { param($m) FracWords $m.Groups[1].Value $m.Groups[2].Value })
}
function Spoken([string]$t) { $t = SayFractions $t; ($t -replace '(?<=\d) x (?=\d)', ' times ' -replace '(?<=\d) / (?=\d)', ' divided by ' -replace '(?<=\d) - (?=\d)', ' minus ' -replace '(?<=\d) \+ (?=\d)', ' plus ' -replace '= \?', 'equals what?') }
function Question([string]$q, [string]$where) {
  $parts = New-Object System.Collections.ArrayList
  $pos = 0
  foreach ($m in [regex]::Matches($q, '\{([^}]*)\}')) {
    $seg = $q.Substring($pos, $m.Index - $pos).Trim(); $pos = $m.Index + $m.Length
    $ans = $m.Groups[1].Value.Trim()
    $p = [ordered]@{ t = (Display $seg) }
    if ($ans -match '^(-?\d+)\.\.(-?\d+) by (-?\d+)$') {
      $a = [int]$Matches[1]; $b = [int]$Matches[2]; $st = [int]$Matches[3]
      $seq = @(); for ($v = $a; ($st -gt 0 -and $v -le $b) -or ($st -lt 0 -and $v -ge $b); $v += $st) { $seq += $v }
      if ($seq[-1] -ne $b) { [void]$script:errors.Add("$where : count by $st from $a never lands on $b") }
      $p.seq = $seq
    } elseif ($ans -match '^\d+(\|\d+)+$') {   # more than one right answer, e.g. {100|1} = 100 cents or 1 dollar
      $all = @($ans -split '\|' | ForEach-Object { [int]$_ }); $p.a = $all[0]; $p.alt = @($all | Select-Object -Skip 1)
    } elseif ($ans -match '^~\s*(.+)$') {   # worked out exactly: {~ 1/2 + 1/4} -> 3/4
      try { $v = EvalFrac $Matches[1]; if ($v -match '^\d+$') { $p.a = [int]$v } else { $p.f = $v } } catch { [void]$script:errors.Add("$where : $_") }
    } elseif ($ans -match '^=(.+)$') {   # exact written form, e.g. {=1/2} for "reduce to lowest terms"; {=3/6|1/2} more than one
      $ex = @($Matches[1] -split '\|' | ForEach-Object { $_.Trim() }); $p.f = $ex[0]; $p.ex = $ex
    } elseif ($ans -eq 'open') {      # answered out loud to a grown-up (e.g. "Give two numbers which make 10")
      $p.open = $true
    } elseif ($ans -match '^(\d+ )?\d+/\d+$' -or $ans -match '^\d*\.\d+$') {   # fraction, mixed number or decimal
      $p.f = $ans
    } elseif ($ans -eq '?') {
      $v = Calc $seg
      if ($null -eq $v) { [void]$script:errors.Add("$where : can't work out {?} for '$seg'") } else { $p.a = $v }
    } elseif ($ans -match '^\d+$') {
      $p.a = [int]$ans
      $v = Calc $seg
      if ($null -ne $v -and $v -ne $p.a) { [void]$script:errors.Add("$where : '$seg' is $v, not $ans") }
    } else { [void]$script:errors.Add("$where : bad answer {$ans}") }
    if ((Spoken $seg) -ne $seg) { $p.s = Spoken $seg }
    [void]$parts.Add($p)
  }
  $tail = $q.Substring($pos).Trim()
  if ($tail) { if ($parts.Count) { $parts[$parts.Count - 1].t += ' ' + $tail } else { [void]$script:errors.Add("$where : question has no {answer}") } }
  return [ordered]@{ parts = $parts.ToArray() }
}

# ---------- lessons ----------
$lessons = New-Object System.Collections.ArrayList
$L = $null; $lastQ = $null; $qn = 0
foreach ($line in $src) {
  if ($line -match '^\s*(#|$)' -or $line -match '^@book: ') { continue }
  if ($line -match '^== (\d+) \| ([^|]+) \| (.+)$') {
    $L = [ordered]@{ n = [int]$Matches[1]; part = $Matches[2].Trim(); title = $Matches[3].Trim(); kind = 'problems' }
    $L.review = $L.part -eq 'Review'
    [void]$lessons.Add($L); $lastQ = $null; $qn = 0; continue
  }
  if (-not $L) { continue }
  $where = "Lesson $($L.n)"
  if ($line -match '^kind: (count|numbers) (\d+) (\d+)$') { $L.kind = $Matches[1]; $L.from = [int]$Matches[2]; $L.to = [int]$Matches[3] }
  elseif ($line -match '^kind: (read|write)$') { $L.kind = $Matches[1] }
  elseif ($line -match '^list: (.+)$') { $L.list = @($Matches[1] -split '\s+' | ForEach-Object { [int]$_ }) }
  elseif ($line -match '^note: (.+)$') { $L.note = $Matches[1] }
  elseif ($line -match '^table: (add|sub|mul|div) (\d+)$') { $L.op = $Matches[1]; $L.table = Table $Matches[1] ([int]$Matches[2]) }
  elseif ($line -match '^table: \+(add|sub|mul|div) (\d+) (\d+)$') {   # Book Two style "2 + 1 = 3" ... "2 + 12 = 14"; several add up
    $L.op = $Matches[1]; $op = $Matches[1]; $n = [int]$Matches[2]; $max = [int]$Matches[3]
    $rows = New-Object System.Collections.ArrayList; if ($L.table) { [void]$rows.AddRange(@($L.table)) }
    foreach ($k in 1..$max) {
      switch ($op) {
        'add' { $r = $n + $k; [void]$rows.Add([ordered]@{ t = "$n + $k = $r"; q = "How many are $n and $k?"; a = $n; b = $k; r = $r }) }
        'sub' { $m = $n + $k - 1; $r = $k - 1; [void]$rows.Add([ordered]@{ t = "$m - $n = $r"; q = "$n from $m leaves how many?"; a = $n; b = $m; r = $r }) }
        'mul' { $r = $n * $k; [void]$rows.Add([ordered]@{ t = "$k x $n = $r"; q = "How many are $k times $n?"; a = $k; b = $n; r = $r }) }   # the book's columns: 1 x 4, 2 x 4 ... 12 x 4
        'div' { $m = $n * $k; [void]$rows.Add([ordered]@{ t = "$m / $n = $k"; q = "How many times is $n contained in $m?"; a = $n; b = $m; r = $k }) }
      }
    }
    foreach ($f in $rows) { $f.t = Display $f.t }
    $L.table = $rows.ToArray()
  }
  elseif ($line -match '^rule: (\d+) (.+) make 1 (.+)$') {
    if (-not $L.rules) { $L.rules = New-Object System.Collections.ArrayList }
    $r = [ordered]@{ t = "$($Matches[1]) $($Matches[2]) make 1 $($Matches[3])"; q = "How many $($Matches[2]) make 1 $($Matches[3])?"; n = [int]$Matches[1]; a = $Matches[2]; b = $Matches[3] }
    if ($r.a -match '\d|^and ') { $r.quiz = $false }   # "365 days and 6 hours": show it, don't quiz it
    [void]$L.rules.Add($r)
  }
  elseif ($line -match '^q: (.+)$') {
    $qn++; if (-not $L.qs) { $L.qs = New-Object System.Collections.ArrayList }
    $lastQ = Question $Matches[1] "$where q$qn"; [void]$L.qs.Add($lastQ)
  }
  elseif ($line -match '^sol: (.+)$') { if ($lastQ) { $lastQ.sol = $Matches[1] } else { [void]$script:errors.Add("$where : sol without a question") } }
  else { [void]$script:errors.Add("$where : can't read line '$line'") }
}
foreach ($L in $lessons) {
  if ($L.rules) { $L.rules = $L.rules.ToArray() }
  if ($L.qs) { $L.qs = $L.qs.ToArray() }
  if ($L.kind -eq 'problems' -and -not $L.qs -and -not $L.rules -and -not $L.table) { [void]$script:errors.Add("Lesson $($L.n) : no questions") }
}
$nums = @($lessons | ForEach-Object { $_.n })
for ($i = 0; $i -lt $nums.Count; $i++) { if ($nums[$i] -ne $i + 1) { [void]$script:errors.Add("lesson numbers out of order at $($nums[$i])"); break } }

if ($script:errors.Count) { "PROBLEMS:"; $script:errors; exit 1 }
$out = [ordered]@{ id = $bk[0]; title = $bk[1]; sub = $bk[2]; color = $bk[3]; lessons = $lessons.ToArray() }
New-Item -ItemType Directory -Force "$root\public\books" | Out-Null
[IO.File]::WriteAllText("$root\public\books\$($bk[0]).json", ($out | ConvertTo-Json -Depth 10 -Compress), (New-Object Text.UTF8Encoding $false))
$q = ($lessons | ForEach-Object { @($_.qs).Count } | Measure-Object -Sum).Sum
$a = ($lessons | ForEach-Object { foreach ($x in @($_.qs)) { if ($x) { $x.parts.Count } } } | Measure-Object -Sum).Sum
"$($lessons.Count) lessons, $q questions, $a answers -> public\books\$($bk[0]).json"
EOF

make-audio.ps1: records every line of a book with Eloquence: -Id intellectual.

cat > /root/rays-rebuild/make-audio.ps1 <<'EOF'
# Records everything Ray's Arithmetic says with the PC's ETI-Eloquence (Reed, the same voice as ABC Books) at each
# speed, then writes public/audio/<id>.json (what the app asks for -> clip id). WAVs land in tools/out/s<speed>/,
# shared by every book (a line two books both say is recorded once).
# Usage: powershell -ExecutionPolicy Bypass -File RaysArithmetic\tools\make-audio.ps1 [-Id primary1877|intellectual|...]
# The keys must match app.js: prompts, "lesson:N", "n:N", "find:N", "ans:N", and the book's own texts.
param([string]$Id = 'primary1877', [int[]]$Speeds = @(60, 75))
$root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
$book = Get-Content "$root\public\books\$Id.json" -Raw -Encoding UTF8 | ConvertFrom-Json
$P = Get-Content "$root\public\prompts.json" -Raw -Encoding UTF8 | ConvertFrom-Json
$kids = 'Layla', 'Lavon', 'Lilly'

$say = New-Object System.Collections.Specialized.OrderedDictionary ([StringComparer]::Ordinal)
function Add($key, $spoken) { if ($key -and -not $say.Contains([string]$key)) { $say[[string]$key] = $(if ($spoken) { $spoken } else { [string]$key }) } }
foreach ($pr in $P.PSObject.Properties) { if ($pr.Value -like '*{kid}*') { foreach ($k in $kids) { Add ($pr.Value -replace '\{kid\}', $k) } } else { Add $pr.Value } }
foreach ($k in $kids) { Add "Great job, $k!" }
foreach ($n in 0..100) { Add "n:$n" "$n."; Add "find:$n" "Find $n." }
# "2 1/2" -> "2 and 1 half", "3/4" -> "3 fourths": how the book says fractions
function Frac([string]$f) {
  $den = @{ 2 = 'half'; 3 = 'third'; 4 = 'fourth'; 5 = 'fifth'; 6 = 'sixth'; 7 = 'seventh'; 8 = 'eighth'; 9 = 'ninth'; 10 = 'tenth'; 11 = 'eleventh'; 12 = 'twelfth'; 20 = 'twentieth'; 100 = 'hundredth' }
  if ($f -match '^\d*\.\d+$') { return $f }
  $w = ''; if ($f -match '^(\d+) (.+)$') { $w = "$($Matches[1]) and "; $f = $Matches[2] }
  $n, $d = $f -split '/'; $name = $den[[int]$d]; if (-not $name) { $name = "$($d)th" }
  if ($name -eq 'half' -and [int]$n -gt 1) { $name = 'halve' }
  return "$w$n $name$(if ([int]$n -gt 1) { 's' })"
}
$answers = New-Object 'System.Collections.Generic.SortedSet[int]'
foreach ($L in $book.lessons) {
  Add "lesson:$($L.n)" "Lesson $($L.n). $($L.title)."
  foreach ($v in @($L.list)) { if ($null -ne $v) { [void]$answers.Add([int]$v) } }
  foreach ($f in @($L.table)) { if ($f) { Add $f.t; Add $f.q; [void]$answers.Add([int]$f.r) } }
  foreach ($r in @($L.rules)) { if ($r) { Add $r.t; Add $r.q } }
  foreach ($q in @($L.qs)) {
    if (-not $q) { continue }
    foreach ($p in $q.parts) {
      $s = if ($p.s) { $p.s } else { $p.t }; Add $s
      if ($null -ne $p.a) { [void]$answers.Add([int]$p.a) }
      if ($p.f) { Add "ans:$($p.f)" "The answer is $(Frac $p.f)." }
      foreach ($v in @($p.seq)) { if ($null -ne $v) { [void]$answers.Add([int]$v); if ($v -gt 100) { Add "n:$v" "$v." } } }
    }
    if ($q.sol) { Add $q.sol }
  }
}
foreach ($a in $answers) { Add "ans:$a" "The answer is $a." }
Add "Answer out loud, then tap Next."
"$($say.Count) clips per speed"

$sha = [Security.Cryptography.SHA1]::Create()
function Id($s) { (($sha.ComputeHash([Text.Encoding]::UTF8.GetBytes($s)) | Select-Object -First 6 | ForEach-Object { $_.ToString('x2') }) -join '') }
$items = New-Object System.Collections.Specialized.OrderedDictionary ([StringComparer]::Ordinal)
foreach ($k in $say.Keys) { $items[$k] = Id $say[$k] }
$ps32 = 'C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe'
foreach ($sp in $Speeds) {
  $dir = "$root\tools\out\s$sp"; New-Item -ItemType Directory -Force $dir | Out-Null
  $jobs = @(); $seen = @{}
  foreach ($k in $say.Keys) { $cid = $items[$k]; if (-not $seen[$cid] -and -not (Test-Path "$dir\$cid.wav")) { $seen[$cid] = 1; $jobs += [ordered]@{ text = $say[$k]; out = "$dir\$cid.wav" } } }
  "speed $sp : $($jobs.Count) to record"
  for ($i = 0; $i -lt $jobs.Count; $i += 400) {   # batches, so a long run shows progress
    $jf = "$dir\jobs.json"; ConvertTo-Json @($jobs[$i..([Math]::Min($i + 399, $jobs.Count - 1))]) | Set-Content -Encoding utf8 $jf
    & $ps32 -NoProfile -ExecutionPolicy Bypass -File "$root\tools\eloq-render.ps1" -Jobs $jf -Speed $sp | Out-Null
    "  $([Math]::Min($i + 400, $jobs.Count)) / $($jobs.Count)"
  }
  Remove-Item "$dir\*.wav.json" -ErrorAction SilentlyContinue   # word times aren't used here
}
$out = [ordered]@{ speeds = $Speeds; items = $items }
New-Item -ItemType Directory -Force "$root\public\audio" | Out-Null
[IO.File]::WriteAllText("$root\public\audio\$Id.json", ($out | ConvertTo-Json -Depth 4 -Compress), (New-Object Text.UTF8Encoding $false))
"manifest: $root\public\audio\$Id.json"
EOF

ocr-pdf.ps1: reads a picture-only PDF with Windows' built-in text recognition (needs pdftoppm from Poppler).

cat > /root/rays-rebuild/ocr-pdf.ps1 <<'EOF'
# OCRs a scanned PDF (no text layer) with Windows' own OCR engine: pdftoppm (Poppler) renders each page to PNG,
# Windows.Media.Ocr reads it, and the text is written with "=== page N ===" markers (PDF page numbers).
# Usage: powershell -ExecutionPolicy Bypass -File RaysArithmetic\tools\ocr-pdf.ps1 -Pdf book.pdf [-Out book.txt] [-Dpi 300]
param([Parameter(Mandatory)] [string]$Pdf, [string]$Out, [int]$Dpi = 300, [int]$First = 1, [int]$Last = 0)
if (-not $Out) { $Out = [IO.Path]::ChangeExtension($Pdf, '.ocr.txt') }
Add-Type -AssemblyName System.Runtime.WindowsRuntime
$null = [Windows.Media.Ocr.OcrEngine, Windows.Foundation, ContentType = WindowsRuntime]
$null = [Windows.Storage.StorageFile, Windows.Storage, ContentType = WindowsRuntime]
$null = [Windows.Graphics.Imaging.BitmapDecoder, Windows.Graphics, ContentType = WindowsRuntime]
$asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | Where-Object { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
function Await($op, [type]$t) { $task = $asTask.MakeGenericMethod($t).Invoke($null, @($op)); $task.Wait(); $task.Result }
$engine = [Windows.Media.Ocr.OcrEngine]::TryCreateFromUserProfileLanguages()
$tmp = Join-Path $env:TEMP ('ocr-' + [IO.Path]::GetFileNameWithoutExtension($Pdf)); New-Item -ItemType Directory -Force $tmp | Out-Null
$args2 = @('-r', $Dpi, '-gray', '-png', '-f', $First); if ($Last) { $args2 += @('-l', $Last) }
& pdftoppm @args2 $Pdf "$tmp\p"
$sb = New-Object Text.StringBuilder
foreach ($png in Get-ChildItem $tmp -Filter 'p-*.png' | Sort-Object { [int]($_.BaseName -replace '\D', '') }) {
  $n = [int]($png.BaseName -replace '\D', '')
  $file = Await ([Windows.Storage.StorageFile]::GetFileFromPathAsync($png.FullName)) ([Windows.Storage.StorageFile])
  $stream = Await ($file.OpenAsync([Windows.Storage.FileAccessMode]::Read)) ([Windows.Storage.Streams.IRandomAccessStream])
  $dec = Await ([Windows.Graphics.Imaging.BitmapDecoder]::CreateAsync($stream)) ([Windows.Graphics.Imaging.BitmapDecoder])
  $bmp = Await ($dec.GetSoftwareBitmapAsync()) ([Windows.Graphics.Imaging.SoftwareBitmap])
  $res = Await ($engine.RecognizeAsync($bmp)) ([Windows.Media.Ocr.OcrResult])
  [void]$sb.AppendLine("=== page $n ===")
  foreach ($line in $res.Lines) { [void]$sb.AppendLine($line.Text) }
  $stream.Dispose()
}
[IO.File]::WriteAllText($Out, $sb.ToString(), (New-Object Text.UTF8Encoding $false))
Remove-Item $tmp -Recurse -Force
"wrote $Out"
EOF

zoom-page.ps1: cuts out part of a PDF page, large, for reading small fractions by eye.

cat > /root/rays-rebuild/zoom-page.ps1 <<'EOF'
# Renders part of a PDF page large, for reading small printed fractions the OCR can't.
# Usage: powershell -File zoom-page.ps1 -Pdf book.pdf -Page 55 -Top 0.45 -Bottom 0.95 -Out crop.png
param([Parameter(Mandatory)] [string]$Pdf, [int]$Page, [double]$Top = 0, [double]$Bottom = 1, [string]$Out, [int]$Dpi = 200)
$d = Join-Path $env:TEMP 'raypg'; New-Item -ItemType Directory -Force $d | Out-Null
Get-ChildItem $d -Filter 'z-*.png' | Remove-Item
& pdftoppm -r $Dpi -f $Page -l $Page -png $Pdf "$d\z"
Add-Type -AssemblyName System.Drawing
$src = Get-ChildItem $d -Filter 'z-*.png' | Select-Object -First 1
$img = [Drawing.Image]::FromFile($src.FullName)
$y0 = [int]($img.Height * $Top); $h = [int]($img.Height * ($Bottom - $Top)); $x0 = [int]($img.Width * 0.08); $w = [int]($img.Width * 0.86)
$crop = New-Object Drawing.Bitmap $w, $h; $g = [Drawing.Graphics]::FromImage($crop)
$g.DrawImage($img, (New-Object Drawing.Rectangle 0, 0, $w, $h), (New-Object Drawing.Rectangle $x0, $y0, $w, $h), [Drawing.GraphicsUnit]::Pixel)
$crop.Save($Out); $g.Dispose(); $crop.Dispose(); $img.Dispose()
$Out
EOF

units.ps1: helper for typing measure answers one unit at a time.

cat > /root/rays-rebuild/units.ps1 <<'EOF'
# Helpers for typing up the measures lessons (dot-source it: . .\units.ps1).
# Val 5 6 $units -> "Feet? {2} Inches? {6}": the value of 5/6 of something, as compound parts.
# Unit sizes are integers in a common small unit; the last part may come out as a fraction ({~a/b}).
function GcdL([long]$a, [long]$b) { $a = [Math]::Abs($a); while ($b) { $x = $a % $b; $a = $b; $b = $x }; [Math]::Max($a, 1) }
function Val([long]$num, [long]$den, $units) {
  $s = ''; $n = $num; $d = $den
  for ($i = 0; $i -lt $units.Count; $i++) {
    $nm = $units[$i][0]; $sz = [long]$units[$i][1]
    if ($i -lt $units.Count - 1) { $q = [Math]::Floor($n / ($d * $sz)); $n -= $q * $d * $sz; $s += " ${nm}? {$q}" }
    else { $a = $n; $b = $d * $sz; $g = GcdL $a $b; $a /= $g; $b /= $g; if ($b -eq 1) { $s += " ${nm}? {$a}" } else { $s += " ${nm}? {~$a/$b}" } }
  }
  $s.Trim()
}
function Trim0($s) { $s -replace '( [\w-]+\? \{0\})+$', '' }
EOF

app.js: the game, now with the whole shelf and the new answer types.

cat > /root/rays-rebuild/app.js <<'EOF'
// Ray's Arithmetic: gamified Ray's New Primary Arithmetic (1877). Progress is saved per kid in localStorage ('rays').
// Same look and voice as ABC Books; the kid picked in ABC Books (same site) is picked here too.
const Rays = (() => {
  const $ = id => document.getElementById(id);
  const KIDS = ['Layla', 'Lavon', 'Lilly'];
  // Ray's series in order (raysarithmetic.wordpress.com/rays-free-arithmetic). A book is playable once books/<id>.json exists.
  const SHELF = [
    { id: 'primary1877', title: "Ray's New Primary Arithmetic", sub: 'Book 1 ยท Grades 1-2', color: '#2f6f8f' },
    { id: 'intellectual', title: "Ray's New Intellectual Arithmetic", sub: 'Book 2 ยท Grades 3-4', color: '#6a4c93' },
    { id: 'practical', title: "Ray's New Practical Arithmetic", sub: 'Book 3 ยท Grades 5-6', color: '#2e7d4f', soon: true },
    { id: 'higher', title: "Ray's New Higher Arithmetic", sub: 'Book 4 ยท Grades 7-8', color: '#a0522d', soon: true },
    { id: 'geometry', title: "Ray's Geometry and Trigonometry", sub: 'Book 5 ยท Grades 9-10', color: '#7a6a1f', soon: true },
    { id: 'algebra1', title: "Ray's New Elementary Algebra", sub: 'Book 6 ยท Grades 9-10', color: '#8f2f4f', soon: true },
    { id: 'algebra2', title: "Ray's New Higher Algebra", sub: 'Book 7 ยท Grade 11', color: '#3b4a8f', soon: true }
  ];
  const BOOKS = {};
  let P = {};
  const STICKERS = ['๐ŸฆŠ', '๐Ÿข', '๐Ÿฆ‰', '๐Ÿ', '๐Ÿฆ‹', '๐Ÿž', '๐Ÿธ', '๐Ÿง', '๐Ÿฆ„', '๐Ÿฌ', '๐Ÿฆ', '๐Ÿผ', '๐Ÿจ', '๐Ÿ™', '๐Ÿฆ€', '๐Ÿณ', '๐Ÿฆ’', '๐Ÿฆ“', '๐Ÿ˜', '๐Ÿฆ”', '๐Ÿฟ๏ธ', '๐Ÿฆœ', '๐Ÿ ', '๐Ÿค', '๐Ÿฐ', '๐Ÿป', '๐Ÿฏ', '๐Ÿฎ', '๐Ÿท', '๐Ÿต', '๐ŸŒป', '๐ŸŒˆ', 'โญ', '๐Ÿš‚', '๐Ÿš€', 'โ›ต', '๐ŸŽˆ', '๐ŸŽ', '๐Ÿ“', '๐Ÿฉ'];
  const STEPS = {
    count: { name: 'Count', icon: 'โ—' }, numbers: { name: 'Numbers', icon: '#' }, find: { name: 'Find the number', icon: '๐Ÿ‘‚' },
    say: { name: 'Read the numbers', icon: '๐Ÿ’ฌ' }, write: { name: 'Write the numbers', icon: 'โœŽ' }, trace: { name: 'Trace the numbers', icon: '1' },
    learn: { name: 'Learn the table', icon: '๐Ÿ“–' }, rules: { name: 'Learn the table', icon: '๐Ÿ“–' }, drill: { name: 'Practice', icon: 'โšก' },
    problems: { name: 'Story problems', icon: '?' }
  };

  // ---------- storage ----------
  let S = load();
  function load() {
    let s = null; try { s = JSON.parse(localStorage.getItem('rays')); } catch (e) {}
    s = s || {};
    s.progress = s.progress || {}; s.pos = s.pos || {}; s.best = s.best || {}; s.stickers = s.stickers || {};
    if (!s.speed) s.speed = 60;
    if (!s.kid) {   // the kid picked in ABC Books or BlockCraft on this site
      for (const k of ['abcbooks', 'blockcraft_cfg']) { try { const c = JSON.parse(localStorage.getItem(k)); const n = c && (c.kid || c.name); if (KIDS.includes(n)) { s.kid = n; break; } } catch (e) {} }
    }
    return s;
  }
  function save() { try { localStorage.setItem('rays', JSON.stringify(S)); } catch (e) {} }
  const kidMap = obj => (obj[S.kid] = obj[S.kid] || {});
  const prog = b => (kidMap(S.progress)[b] = kidMap(S.progress)[b] || {});

  // ---------- sound + voice (recorded Eloquence clips, else the device voice) ----------
  let AC;
  function beep(good) {
    try {
      AC = AC || new (window.AudioContext || window.webkitAudioContext)();
      const o = AC.createOscillator(), g = AC.createGain(), t = AC.currentTime;
      o.type = 'triangle'; o.connect(g); g.connect(AC.destination);
      const notes = good ? [523, 659, 784] : [220, 180];
      notes.forEach((f, i) => o.frequency.setValueAtTime(f, t + i * 0.1));
      g.gain.setValueAtTime(0.25, t); g.gain.exponentialRampToValueAtTime(0.001, t + notes.length * 0.1 + 0.2);
      o.start(t); o.stop(t + notes.length * 0.1 + 0.25);
    } catch (e) {}
  }
  const hasTTS = 'speechSynthesis' in window;
  let voice = null;
  function pickVoice() { if (!hasTTS) return; const v = speechSynthesis.getVoices().filter(v => /^en/i.test(v.lang)); voice = v.find(v => /female|samantha|zira|aria|jenny|google us/i.test(v.name)) || v[0] || null; }
  if (hasTTS) { pickVoice(); speechSynthesis.onvoiceschanged = pickVoice; }
  let AUDIO = null;   // audio/primary1877.json: spoken text -> clip id (tools/make-audio.ps1)
  const clip = new Audio(); clip.preload = 'auto';
  let clipDone = null, tok = 0, unlocked = false;
  const blobs = new Map();
  function clipURL(url) {   // fetched whole and played from memory: works offline and on Safari
    if (!blobs.has(url)) blobs.set(url, fetch(url).then(r => { if (!r.ok) throw new Error(r.status); return r.blob(); }).then(b => URL.createObjectURL(b)));
    const p = blobs.get(url); p.catch(() => blobs.delete(url)); return p;
  }
  const speedOf = () => AUDIO.speeds.includes(S.speed) ? S.speed : AUDIO.speeds[0];
  const urlFor = key => { const c = AUDIO && AUDIO.items[key]; return c ? `audio/s${speedOf()}/${c}.mp3` : null; };
  function stopAll() { tok++; clip.pause(); if (clipDone) { const d = clipDone; clipDone = null; d(); } if (hasTTS) speechSynthesis.cancel(); }
  function playURL(u, my) {
    return new Promise(res => {
      clipURL(u).then(b => {
        if (my !== tok) return res();
        clipDone = res; clip.muted = false; clip.src = b;
        clip.onended = clip.onerror = () => { if (clipDone) { const d = clipDone; clipDone = null; d(); } };
        clip.play().catch(() => clip.onended());
      }).catch(() => res());
    });
  }
  // speak(...keys): one clip per key, played one after the other; a key with no clip uses the device voice
  async function speak(...keys) {
    stopAll(); const my = tok;
    for (const k of keys) {
      if (my !== tok || k == null || k === '') continue;
      const u = urlFor(String(k));
      if (u) await playURL(u, my); else await tts(String(k).replace(/^(n|find|ans|lesson):/, ''));
    }
  }
  function tts(text) {
    return new Promise(res => {
      if (!hasTTS) return setTimeout(res, 300);
      const u = new SpeechSynthesisUtterance(text); if (voice) u.voice = voice; u.rate = 0.85;
      u.onend = u.onerror = res; speechSynthesis.speak(u);
    });
  }
  const sayNum = n => speak('n:' + n);
  window.addEventListener('pointerdown', () => {   // iOS: unlock audio inside the first tap
    if (AC && AC.state === 'suspended') AC.resume();
    const u = urlFor(P.yes); if (unlocked || !u) return; unlocked = true;
    clipURL(u).then(b => { if (!clip.src) { clip.muted = true; clip.src = b; clip.play().then(() => { clip.pause(); clip.muted = false; }).catch(() => { clip.muted = false; }); } }).catch(() => {});
  }, { passive: true });

  // ---------- helpers ----------
  function toast(t, ms) { const e = $('toast'); e.textContent = t; e.style.display = 'block'; clearTimeout(toast.t); toast.t = setTimeout(() => e.style.display = 'none', ms || 1100); }
  function el(tag, cls, html) { const e = document.createElement(tag); if (cls) e.className = cls; if (html != null) e.innerHTML = html; return e; }
  function btn(label, fn, cls) { const b = el('button', cls, label); b.onclick = fn; return b; }
  const shuffle = a => { a = a.slice(); for (let i = a.length - 1; i > 0; i--) { const j = Math.floor(Math.random() * (i + 1)); [a[i], a[j]] = [a[j], a[i]]; } return a; };
  const range = (a, b) => Array.from({ length: b - a + 1 }, (_, i) => a + i);
  const starStr = n => 'โ˜…'.repeat(n) + 'โ˜†'.repeat(3 - n);
  const starsFor = (miss, n) => miss === 0 ? 3 : miss <= Math.max(2, Math.round(n * 0.15)) ? 2 : 1;
  const wait = ms => new Promise(r => setTimeout(r, ms));
  function go(id) { document.querySelectorAll('.screen').forEach(s => s.classList.toggle('on', s.id === id)); if (id === 'home') home(); if (id === 'stickers') stickers(); }
  const ONES = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'];
  const TENS = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];
  const words = n => n < 20 ? ONES[n] : n === 100 ? 'one hundred' : TENS[Math.floor(n / 10)] + (n % 10 ? '-' + ONES[n % 10] : '');

  // pictures: dots for a fact (a and b in two colors, crossed out when taken away, rows for times, groups for division)
  function dotsFor(op, a, b) {
    const box = el('div', 'dots');
    const grp = (n, cls, boxed) => { const g = el('div', 'grp' + (boxed ? ' box' : '')); for (let i = 0; i < n; i++) g.appendChild(el('i', 'dot ' + (cls || ''))); return g; };
    if (op === 'add') { box.append(grp(a), el('span', 'op', '+'), grp(b, 'b')); }
    else if (op === 'sub') { const g = el('div', 'grp'); for (let i = 0; i < b; i++) g.appendChild(el('i', 'dot ' + (i >= b - a ? 'x' : ''))); box.appendChild(g); }
    else if (op === 'mul') { if (a * b > 100) return box; for (let i = 0; i < a; i++) box.appendChild(grp(b, i % 2 ? 'b' : '', true)); }
    else if (op === 'div') { if (b > 100) return box; for (let i = 0; i < b / a; i++) box.appendChild(grp(a, i % 2 ? 'b' : '', true)); }
    return box;
  }
  const SIGN = { add: '+', sub: 'โˆ’', mul: 'ร—', div: 'รท' };
  const expr = (op, f) => op === 'sub' ? `${f.b} โˆ’ ${f.a}` : op === 'div' ? `${f.b} รท ${f.a}` : `${f.a} ${SIGN[op]} ${f.b}`;
  // a picture for a story problem, from the first thing it counts
  const PICS = [['cent|dime|money', '๐Ÿ’ฐ'], ['dollar', '๐Ÿ’ต'], ['apple', '๐ŸŽ'], ['pear', '๐Ÿ'], ['peach', '๐Ÿ‘'], ['orange', '๐ŸŠ'], ['lemon', '๐Ÿ‹'], ['cherr', '๐Ÿ’'], ['plum|raisin|fig', '๐Ÿ‡'], ['melon', '๐Ÿˆ'], ['pine-apple', '๐Ÿ'], ['strawberr|berr', '๐Ÿ“'], ['nut|chestnut|pecan|walnut', '๐ŸŒฐ'],
    ['marble', '๐Ÿ”ต'], ['top', '๐ŸŽฏ'], ['kite', '๐ŸŽ'], ['ball', 'โšฝ'], ['doll', '๐Ÿงธ'], ['bird|swallow|crow|pigeon', '๐Ÿฆ'], ['owl', '๐Ÿฆ‰'], ['bat', '๐Ÿฆ‡'], ['duck', '๐Ÿฆ†'], ['geese|goose', '๐Ÿฆข'], ['chicken|hen', '๐Ÿ”'], ['fish', '๐ŸŸ'], ['horse', '๐Ÿด'], ['cow|calf|calves', '๐Ÿ„'], ['sheep', '๐Ÿ‘'], ['pig|hog', '๐Ÿ–'], ['rabbit', '๐Ÿ‡'], ['cat|kitten', '๐Ÿˆ'], ['mice|mouse', '๐Ÿญ'],
    ['egg', '๐Ÿฅš'], ['cake|candy', '๐Ÿฌ'], ['milk', '๐Ÿฅ›'], ['book|primer|reader|geograph', '๐Ÿ“š'], ['pen|pencil|slate', 'โœ๏ธ'], ['ribbon|tape|cloth|calico|muslin|silk', '๐ŸŽ€'], ['tree|orchard', '๐ŸŒณ'], ['flower|rose', '๐ŸŒน'], ['leaves|leaf', '๐Ÿƒ'], ['ship|boat', 'โ›ต'], ['car', '๐Ÿšƒ'], ['mile|travel', '๐Ÿ›ค๏ธ'], ['hour|minute', 'โฐ'], ['day|week|month|year', '๐Ÿ“…'], ['wood|cord', '๐ŸŒฒ'], ['flour|wheat|corn|oats|seed', '๐ŸŒพ'],
    ['boy|girl|pupil|scholar|men|man|persons', '๐Ÿง’'], ['window|pane', '๐Ÿ '], ['chair|bench', '๐Ÿ’บ'], ['foot|feet|inch|yard|rod', '๐Ÿ“'], ['pound|ounce|ton', 'โš–๏ธ'], ['quart|pint|gallon|gill|peck|bushel', '๐Ÿถ']];
  function picFor(text) { const t = text.toLowerCase(); let best = null, at = 1e9; for (const [rx, e] of PICS) { const m = t.match(new RegExp('\\b(' + rx + ')')); if (m && m.index < at) { at = m.index; best = e; } } return best || '๐Ÿงฎ'; }

  // ---------- spoken answers ----------
  // The kid can say the answer. First choice: our own Vosk server (CT 307, /api/recognize, shared with ABC Books),
  // told to listen only for number words. Fallback: the browser's own recognizer. No mic at all: the button hides.
  const NUM_WORDS = 'zero oh one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty thirty forty fifty sixty seventy eighty ninety hundred thousand and a';
  const SR = window.SpeechRecognition || window.webkitSpeechRecognition;
  const GUM = !!(window.isSecureContext && navigator.mediaDevices && navigator.mediaDevices.getUserMedia);
  let micOK = GUM || !!SR, useServer = GUM;
  const W1 = { zero: 0, oh: 0, one: 1, two: 2, three: 3, four: 4, for: 4, five: 5, six: 6, seven: 7, eight: 8, ate: 8, nine: 9, ten: 10, eleven: 11, twelve: 12, thirteen: 13, fourteen: 14, fifteen: 15, sixteen: 16, seventeen: 17, eighteen: 18, nineteen: 19 };
  const W10 = { twenty: 20, thirty: 30, forty: 40, fifty: 50, sixty: 60, seventy: 70, eighty: 80, ninety: 90 };
  // "nine thousand six hundred" -> 9600; "four two" (digits one at a time) -> 42; "7" -> 7
  function wordsToNumber(words) {
    // "a hundred" = one hundred; a stray "a" (Vosk often hears it for "one"/"and" in fast speech) alone is one
    const w = words.join(' ').toLowerCase().replace(/-/g, ' ').split(/\s+/).filter(x => x && x !== 'and').map((x, i, all) => x === 'a' ? (all.length === 1 || /^(hundred|thousand)$/.test(all[i + 1] || '') ? 'one' : '') : x).filter(Boolean);
    if (!w.length) return null;
    if (w.every(x => /^\d+$/.test(x))) return parseInt(w.join(''), 10);
    if (w.length > 1 && w.every(x => x in W1 && W1[x] < 10)) return parseInt(w.map(x => W1[x]).join(''), 10);
    let total = 0, cur = 0, any = false;
    for (const x of w) {
      if (/^\d+$/.test(x)) { cur += parseInt(x, 10); any = true; }
      else if (x in W1 || x in W10) {   // "nineteen twenty" (said like a year) -> 1920; "twenty four" -> 24
        const v = x in W1 ? W1[x] : W10[x];
        cur = v >= 10 && cur % 100 ? cur * 100 + v : cur + v; any = true;
      }
      else if (x === 'hundred') { cur = (cur || 1) * 100; any = true; }
      else if (x === 'thousand') { total += (cur || 1) * 1000; cur = 0; any = true; }
      else return null;   // a word that isn't a number: didn't understand
    }
    return any ? total + cur : null;
  }
  let stopListening = () => {};
  async function hearNumber() {
    if (useServer) {
      try { const w = await listenServer(7000); return w ? wordsToNumber(w) : null; }
      catch (e) { useServer = false; if (!SR) { micOK = false; return null; } }
    }
    const alts = await listenBrowser(7000);
    for (const a of alts) { const n = wordsToNumber(a); if (n != null) return n; }
    return null;
  }
  // records until the kid stops talking (1.2 s quiet) or the time runs out (same as ABC Books)
  async function listenServer(timeoutMs) {
    let stream;
    try { stream = await navigator.mediaDevices.getUserMedia({ audio: { echoCancellation: true, noiseSuppression: true } }); }
    catch (e) { micOK = false; return null; }
    const ctx = new (window.AudioContext || window.webkitAudioContext)();
    try { await ctx.resume(); } catch (e) {}
    const src = ctx.createMediaStreamSource(stream), proc = ctx.createScriptProcessor(4096, 1, 1);
    const chunks = []; let spoke = false, quiet = 0; const t0 = performance.now();
    await new Promise(res => {
      let done = false; const fin = () => { if (!done) { done = true; res(); } };
      stopListening = fin;
      proc.onaudioprocess = e => {
        const d = e.inputBuffer.getChannelData(0); chunks.push(new Float32Array(d));
        let s = 0; for (let i = 0; i < d.length; i++) s += d[i] * d[i];
        if (Math.sqrt(s / d.length) > 0.015) { spoke = true; quiet = 0; } else if (spoke) quiet += d.length / ctx.sampleRate * 1000;
        if ((spoke && quiet > 1200) || performance.now() - t0 > timeoutMs) fin();
      };
      src.connect(proc); proc.connect(ctx.destination);
    });
    stopListening = () => {};
    proc.disconnect(); src.disconnect(); stream.getTracks().forEach(t => t.stop());
    const rate = ctx.sampleRate; ctx.close();
    if (!spoke) return null;
    const r = await fetch('/api/recognize?near=0&words=' + encodeURIComponent(NUM_WORDS), { method: 'POST', headers: { 'Content-Type': 'application/octet-stream' }, body: to16k(chunks, rate) });
    if (!r.ok) throw new Error('speech ' + r.status);
    const j = await r.json();
    return j.words || [];
  }
  function to16k(chunks, rate) {   // Float32 at the device rate -> 16 kHz 16-bit PCM (what Vosk wants)
    const n = chunks.reduce((a, c) => a + c.length, 0), all = new Float32Array(n); let o = 0;
    for (const c of chunks) { all.set(c, o); o += c.length; }
    const ratio = rate / 16000, m = Math.floor(n / ratio), out = new Int16Array(m);
    for (let i = 0; i < m; i++) {
      const a = Math.floor(i * ratio), b = Math.min(n, Math.max(a + 1, Math.floor((i + 1) * ratio))); let s = 0;
      for (let k = a; k < b; k++) s += all[k];
      out[i] = Math.max(-1, Math.min(1, s / (b - a))) * 32767;
    }
    return out.buffer;
  }
  function listenBrowser(timeoutMs) {
    return new Promise(res => {
      if (!SR) return res([]);
      const r = new SR(); r.lang = 'en-US'; r.interimResults = false; r.maxAlternatives = 5;
      let best = [], done = false;
      const fin = () => { if (done) return; done = true; try { r.stop(); } catch (e) {} res(best); };
      stopListening = fin;
      r.onresult = e => { best = [...e.results[0]].map(a => a.transcript.split(/\s+/)); fin(); };
      r.onerror = e => { if (/not-allowed|service-not-allowed/.test(e.error || '')) micOK = false; fin(); };
      r.onend = fin;
      try { r.start(); } catch (e) { micOK = false; return fin(); }
      setTimeout(fin, timeoutMs);
    });
  }

  // number pad (big buttons; a computer keyboard works too; ๐ŸŽค to say the answer)
  function numPad(onOK) {
    const wrap = el('div', 'col'); wrap.style.height = 'auto'; wrap.style.gap = '1vmin';
    const entry = el('div', 'entry', '&nbsp;'); let val = '';
    const show = () => { entry.innerHTML = val || '&nbsp;'; entry.classList.remove('no', 'ok'); };
    const pad = el('div', 'pad');
    let fracMode = false;   // answers like 3/4 or 2 1/2: extra keys, and OK hands back the text
    const press = k => {
      if (k === 'โŒซ') val = val.slice(0, -1);
      else if (k === 'OK') { if (val.trim()) onOK(fracMode ? val.trim() : parseInt(val, 10)); return; }
      else if (k === 'and') { if (fracMode && val && !/[ /.]/.test(val)) val += ' '; }
      else if (k === '/') { if (fracMode && val && !val.endsWith(' ') && !/[/.]/.test(val)) val += '/'; }
      else if (k === '.') { if (fracMode && !/[ /.]/.test(val)) val += '.'; }
      else if (val.length < 9) val += k;
      show();
    };
    ['1', '2', '3', '4', '5', '6', '7', '8', '9', 'โŒซ', '0', 'OK'].forEach(k => pad.appendChild(btn(k, () => press(k), k === 'OK' ? 'okb' : '')));
    const fracRow = el('div', 'pad'); fracRow.style.display = 'none';
    fracRow.append(btn('/', () => press('/')), btn('and', () => press('and')), btn('.', () => press('.')));
    const onKey = e => { if (/^[0-9]$/.test(e.key)) press(e.key); else if (e.key === '/' || e.key === '.') press(e.key); else if (e.key === ' ' && fracMode) { e.preventDefault(); press('and'); } else if (e.key === 'Backspace') press('โŒซ'); else if (e.key === 'Enter') press('OK'); };
    window.addEventListener('keydown', onKey);
    const mic = btn('๐ŸŽค Say it', async () => {
      if (mic.classList.contains('live')) return stopListening();
      stopAll(); mic.classList.add('live'); mic.textContent = '๐ŸŽค Listeningโ€ฆ';
      const n = await hearNumber();
      mic.classList.remove('live'); mic.textContent = '๐ŸŽค Say it';
      if (!micOK) { mic.style.display = 'none'; return toast('This device cannot listen. Type the answer.', 2000); }
      if (n == null) return toast('I did not catch that. Say it again!', 1500);
      val = String(n); show(); onOK(n);
    }, 'micb');
    if (!micOK) mic.style.display = 'none';
    wrap.append(entry, pad, fracRow, mic);
    return { el: wrap, entry, frac(on) { fracMode = !!on; fracRow.style.display = on ? '' : 'none'; mic.style.display = on || !micOK ? 'none' : ''; }, show(on) { wrap.style.display = on ? '' : 'none'; }, clear() { val = ''; show(); }, set(v, cls) { val = String(v); show(); if (cls) entry.classList.add(cls); }, bad() { entry.classList.remove('no'); void entry.offsetWidth; entry.classList.add('no'); }, stop() { stopListening(); window.removeEventListener('keydown', onKey); } };
  }
  // fractions compare by value: 5/2 = 2 1/2 = 2.5
  function fracVal(s) {
    s = String(s).trim(); let m;
    if ((m = s.match(/^(\d+) (\d+)\/(\d+)$/))) return +m[1] + m[2] / m[3];
    if ((m = s.match(/^(\d+)\/(\d+)$/))) return m[1] / m[2];
    return /^\d*\.?\d+$/.test(s) ? parseFloat(s) : NaN;
  }
  const sameVal = (a, b) => Math.abs(fracVal(a) - fracVal(b)) < 1e-9;
  // counters tray: tap beads to count with
  function initTray() {
    const f = $('frame'); f.innerHTML = '';
    for (let i = 0; i < 30; i++) f.appendChild(btn('', e => { e.currentTarget.classList.toggle('on'); count(); }));
    const count = () => { $('trayN').textContent = f.querySelectorAll('.on').length; };
    $('trayClear').onclick = () => { f.querySelectorAll('.on').forEach(b => b.classList.remove('on')); count(); };
    $('trayClose').onclick = () => $('tray').classList.remove('on');
  }

  // ---------- home, map, stickers ----------
  function home() {
    const k = $('kids'); k.innerHTML = '';
    KIDS.forEach(n => k.appendChild(btn(n, () => { S.kid = n; save(); home(); speak(P.greet.replace('{kid}', n)); }, S.kid === n ? 'sel' : '')));
    const sb = $('speedBtn'); sb.textContent = 'Voice: ' + (S.speed === 75 ? 'faster' : 'normal');
    sb.onclick = () => { S.speed = S.speed === 75 ? 60 : 75; save(); home(); speak(P.yes); };
    const sh = $('shelf'); sh.innerHTML = '';
    // the kid's current book glows: the first open book they haven't finished
    const doneIn = id => S.kid && BOOKS[id] ? Object.values(prog(id)).filter(x => x && x.stars).length : 0;
    const cur = S.kid && SHELF.find(b => BOOKS[b.id] && doneIn(b.id) < BOOKS[b.id].lessons.length);
    SHELF.forEach(b => {
      const B = BOOKS[b.id], n = B ? B.lessons.length : 0, d = doneIn(b.id);
      const pr = !B ? 'Coming soon' : S.kid ? (d >= n ? 'โ˜… Finished!' : d ? `Lesson ${d + 1} of ${n}` : `Lessons: ${n}`) : '';
      const e = btn(`<b>${b.title}</b><span class="bp">${pr}</span><small>${b.sub}</small>`, () => {
        if (!B) return toast('Coming soon!');
        if (!S.kid) return toast('Pick your name first!');
        openBook(b.id);
      }, 'book' + (!B ? ' soon' : '') + (cur && cur.id === b.id ? ' cur' : ''));
      e.style.background = b.color; sh.appendChild(e);
    });
  }
  let book, bookId;
  function openBook(id) {
    bookId = id; book = BOOKS[id]; $('mapTitle').textContent = `${S.kid}: ${book.title}`;
    const t = $('tiles'); t.innerHTML = ''; const p = prog(id); let nextSet = false;
    book.lessons.forEach((L, i) => {
      const st = (p[L.n] || {}).stars || 0, prevDone = i === 0 || (p[book.lessons[i - 1].n] || {}).stars;
      const isNext = !st && prevDone && !nextSet; if (isNext) nextSet = true;
      const tile = btn(`${L.n}<small>${L.part}</small><span class="st">${st ? starStr(st) : ''}</span>`, () => {
        if (!prevDone && !st) return toast('Finish lesson ' + book.lessons[i - 1].n + ' first');
        startLesson(L);
      }, 'tile' + (isNext ? ' next' : '') + (!prevDone && !st ? ' locked' : '') + (L.review ? ' rev' : ''));
      tile.title = L.title; t.appendChild(tile);
    });
    go('map'); speak(P.map);
    const nx = t.querySelector('.next'); if (nx) nx.scrollIntoView({ block: 'center' });
  }
  const stkKey = (b, n) => b === 'primary1877' ? n : `${b}:${n}`;   // Book One keeps its first keys
  function stickers() {   // the sticker book for the book the kid is in (Book One when none is open yet)
    const g = $('stkList'); g.innerHTML = ''; const got = kidMap(S.stickers), id = bookId || 'primary1877', B = BOOKS[id];
    const n = B ? B.lessons.filter(L => got[stkKey(id, L.n)]).length : 0;
    $('stkTitle').textContent = `${S.kid || ''} sticker book: ${B ? B.title : ''}, ${n} of ${B ? B.lessons.length : 0}`;
    (B ? B.lessons : []).forEach(L => { const v = got[stkKey(id, L.n)]; const s = el('span', v ? 'got' : '', v || ''); s.title = 'Lesson ' + L.n; g.appendChild(s); });
  }
  $('toStickers').onclick = () => { if (!S.kid) return toast('Pick your name first!'); go('stickers'); };

  // ---------- lesson flow ----------
  let L, steps, stepIdx, scores, cleanup = null, sayAgain = null, stepTok = 0;
  function stepsFor(L) {
    switch (L.kind) {
      case 'count': return ['count', 'find', 'trace'];
      case 'numbers': return ['numbers', 'find', 'trace'];
      case 'read': return ['say', 'find'];
      case 'write': return ['write', 'trace'];
    }
    const s = [];
    if (L.table) s.push('learn', 'drill');
    if (L.rules) s.push('rules'); if (L.rules && L.rules.some(r => r.quiz !== false) && !L.table) s.push('drill');
    if (L.qs) s.push('problems');
    return s;
  }
  function startLesson(lesson) {
    L = lesson; steps = stepsFor(L); scores = {}; stepIdx = 0;
    $('lesTitle').textContent = `Lesson ${L.n}: ${L.title}`;
    go('lesson'); runStep(true);
  }
  function leave() { stopStep(); openBook(bookId); }
  function stopStep() { stopAll(); $('tray').classList.remove('on'); if (cleanup) { cleanup(); cleanup = null; } }
  function runStep(first) {
    stopStep();
    const id = steps[stepIdx];
    const dots = $('steps'); dots.innerHTML = '';
    steps.forEach((x, i) => dots.appendChild(el('i', i < stepIdx ? 'done' : i === stepIdx ? 'cur' : '', STEPS[x].icon)));
    if (!id) return finish();
    $('stepTitle').textContent = STEPS[id].name; $('stage').innerHTML = ''; $('controls').innerHTML = ''; $('hint').textContent = P[id] || '';
    sayAgain = null; const my = ++stepTok;
    const intro = (first ? speak('lesson:' + L.n, P[id]) : speak(P[id]));
    $('sayBtn').onclick = () => sayAgain ? sayAgain() : speak(P[id]);
    ({ count: stepCount, numbers: stepNumbers, find: stepFind, say: stepSay, write: stepWrite, trace: stepTrace, learn: stepLearn, rules: stepRules, drill: stepDrill, problems: stepProblems })[id](intro.then(() => my === stepTok));
  }
  function next(stars) { scores[steps[stepIdx]] = stars; stepIdx++; runStep(); }
  const afterIntro = (intro, fn) => intro.then(ok => { if (ok) fn(); });

  // Lesson 1: count the balls, one tap per ball
  function stepCount(intro) {
    let n = L.from;
    const st = $('stage'); const col = el('div', 'col'); st.appendChild(col);
    function show() {
      col.innerHTML = ''; let c = 0;
      const balls = el('div', 'balls'); const big = el('div', 'big-n', '&nbsp;'); const w = el('div', 'word', '&nbsp;');
      for (let i = 0; i < n; i++) balls.appendChild(btn('', e => {
        const b = e.currentTarget; if (b.classList.contains('on')) return;
        b.classList.add('on'); b.textContent = ++c; sayNum(c);
        if (c === n) { big.textContent = n; w.textContent = words(n); setTimeout(() => { beep(true); speak('n:' + n).then(() => wait(700)).then(() => { if (++n > L.to) next(3); else show(); }); }, 650); }
      }, 'ball'));
      col.append(balls, big, w);
      $('hint').textContent = `Tap each ball and count. (${n - L.from + 1} of ${L.to - L.from + 1})`;
    }
    sayAgain = () => speak(P.count);
    show();
  }
  // Lessons 2-4: each number with its tens and ones
  function stepNumbers(intro) {
    let n = L.from; const st = $('stage'); const col = el('div', 'col'); st.appendChild(col);
    let auto = false;
    function show() {
      col.innerHTML = '';
      col.append(el('div', 'big-n', n), el('div', 'word', words(n)));
      const rods = el('div', 'rods');
      for (let t = 0; t < Math.floor(n / 10); t++) { const r = el('div', 'rod'); for (let i = 0; i < 10; i++) r.appendChild(el('i')); rods.appendChild(r); }
      const ones = el('div', 'grp'); for (let i = 0; i < n % 10; i++) ones.appendChild(el('i', 'dot')); rods.appendChild(ones);
      col.appendChild(rods);
      col.appendChild(el('div', 'note', `${Math.floor(n / 10)} tens and ${n % 10} ones`));
      $('hint').textContent = `${n - L.from + 1} of ${L.to - L.from + 1}`;
      return sayNum(n);
    }
    async function playAll() { auto = true; playB.disabled = true; while (auto && n <= L.to) { await show(); await wait(700); if (!auto) break; if (n < L.to) n++; else break; } auto = false; playB.disabled = false; nextB.disabled = false; }
    const prevB = btn('โ—€', () => { auto = false; if (n > L.from) { n--; show(); } });
    const fwdB = btn('โ–ถ', () => { auto = false; if (n < L.to) { n++; show(); } else nextB.disabled = false; });
    const playB = btn('โ–ถ Play all', playAll, 'big'), nextB = btn('Next step โ–ถ', () => next(3));
    nextB.disabled = true; $('controls').append(prevB, playB, fwdB, nextB);
    sayAgain = show; cleanup = () => { auto = false; };
    col.append(el('div', 'big-n', n), el('div', 'word', words(n)));
    afterIntro(intro, playAll);
  }
  // hear a number, tap it
  function stepFind(intro) {
    const pool = L.list || range(L.from, L.to);
    const rounds = shuffle(pool).slice(0, 8); let r = 0, miss = 0, busy = false, target;
    const st = $('stage'); const col = el('div', 'col'); st.appendChild(col);
    const grid = el('div', 'choices'); col.appendChild(grid);
    function round() {
      if (r >= rounds.length) { toast('Great job! โญ'); return setTimeout(() => next(starsFor(miss, rounds.length)), 900); }
      target = rounds[r++]; grid.innerHTML = '';
      const opts = shuffle([target, ...shuffle(pool.filter(x => x !== target)).slice(0, 3)]);
      opts.forEach(v => grid.appendChild(btn(v, e => {
        if (busy) return; const b = e.currentTarget;
        if (v === target) { busy = true; beep(true); b.classList.add('ok'); setTimeout(() => { busy = false; round(); }, 800); }
        else { miss++; beep(false); b.classList.remove('no'); void b.offsetWidth; b.classList.add('no'); }
      })));
      $('hint').textContent = `Find the number you hear (${r} of ${rounds.length})`;
      sayAgain = () => speak('find:' + target); sayAgain();
    }
    afterIntro(intro, round);
  }
  // Lesson 5: numbers to be read, out loud to a grown-up
  function stepSay(intro) {
    const g = el('div', 'grid'); $('stage').appendChild(g);
    L.list.forEach(v => g.appendChild(btn(v, e => { e.currentTarget.classList.add('seen'); sayNum(v); })));
    $('controls').appendChild(btn('Done โœ“', () => next(3), 'big'));
  }
  // Lesson 6: numbers to be written: hear it, type it
  function stepWrite(intro) {
    const items = shuffle(L.list).slice(0, 12); let i = 0, miss = 0, tries = 0;
    const col = el('div', 'col'); $('stage').appendChild(col);
    const pad = numPad(v => {
      if (v === items[i]) { beep(true); pad.set(v, 'ok'); tries = 0; setTimeout(() => { i++; ask(); }, 700); }
      else if (++tries < 2) { miss++; beep(false); pad.bad(); speak(P.tryAgain, 'n:' + items[i]); }
      else { miss++; pad.set(items[i], 'ok'); speak('ans:' + items[i]); tries = 0; setTimeout(() => { i++; ask(); }, 1800); }
    });
    col.appendChild(pad.el);
    function ask() {
      if (i >= items.length) return next(starsFor(miss, items.length));
      pad.clear(); $('hint').textContent = `Write the number you hear (${i + 1} of ${items.length})`;
      sayAgain = () => sayNum(items[i]); sayAgain();
    }
    cleanup = () => pad.stop();
    afterIntro(intro, ask);
  }
  // trace the figures (same engine as ABC Books)
  function stepTrace(intro) {
    const nums = L.kind === 'count' ? ['1 2 3', '4 5 6', '7 8 9', '10'] : L.kind === 'write' ? ['0 1 2 3 4', '5 6 7 8 9', '10 20 30'] : (() => { const r = range(L.from, L.to), out = []; for (let i = 0; i < r.length && out.length < 4; i += 4) out.push(r.slice(i, i + 4).join(' ')); return out; })();
    let i = 0, misses = 0, tracer;
    const box = el('div', 'grow paper'); box.style.height = '100%'; $('stage').appendChild(box);
    const cv = el('canvas'); box.appendChild(cv);
    ABCTrace.Tracer.onMiss = why => { misses++; beep(false); $('hint').textContent = why === 'start' ? 'Start at the green dot!' : 'Follow the arrow all the way.'; };
    function page() {
      if (tracer) tracer.stop();
      $('hint').textContent = `Page ${i + 1} of ${nums.length}: start at the green dot and follow the arrow.`;
      tracer = ABCTrace.Tracer(cv, nums[i], 'print', () => { beep(true); toast('โญ', 700); setTimeout(() => { if (++i < nums.length) page(); else next(misses < 3 ? 3 : misses < 8 ? 2 : 1); }, 800); });
    }
    $('controls').appendChild(btn('Skip page', () => { if (++i < nums.length) page(); else next(1); }, 'ghost parent'));
    setTimeout(page, 50);
    const onRes = () => page(); window.addEventListener('resize', onRes);
    cleanup = () => { tracer && tracer.stop(); window.removeEventListener('resize', onRes); };
  }

  // the book's table, one line at a time with its picture
  function stepLearn(intro) { learnList(L.table.map(f => ({ t: f.t, pic: () => dotsFor(L.op, f.a, f.b), ex: `${expr(L.op, f)} = ${f.r}` })), intro); }
  function stepRules(intro) { learnList(L.rules.map(r => ({ t: r.t, pic: () => el('div', 'pic', picFor(r.t)) })), intro); }
  function learnList(items, intro) {
    const col = el('div', 'col'); $('stage').appendChild(col);
    const face = el('div', 'col'); face.style.height = 'auto'; const chips = el('div', 'chips'); col.append(face, chips);
    let i = 0, auto = false; const seen = new Set();
    const chipEls = items.map((it, k) => { const c = btn(it.t, () => { auto = false; i = k; show(); }, 'chip'); chips.appendChild(c); return c; });
    function show() {
      face.innerHTML = ''; const it = items[i];
      const f = el('div', 'fact', it.t); if (it.ex) f.appendChild(el('span', 'sm', it.ex));
      face.append(f, it.pic());
      chipEls.forEach((c, k) => c.classList.toggle('cur', k === i)); chipEls[i].classList.add('seen'); seen.add(i);
      chipEls[i].scrollIntoView({ block: 'nearest' });
      if (seen.size === items.length) nextB.disabled = false;
      return speak(it.t);
    }
    async function playAll() { auto = true; playB.disabled = true; for (i = 0; i < items.length && auto; i++) { await show(); await wait(600); } i = Math.min(i, items.length - 1); auto = false; playB.disabled = false; nextB.disabled = false; }
    const playB = btn('โ–ถ Read to me', playAll, 'big'), nextB = btn('Next โ–ถ', () => next(3));
    nextB.disabled = true; $('controls').append(playB, nextB);
    sayAgain = show; cleanup = () => { auto = false; };
    face.appendChild(el('div', 'fact', items[0].t));
    $('hint').textContent = 'Tap โ–ถ Read to me, or tap each line.';
    afterIntro(intro, playAll);
  }

  // practice: every fact in the table (or every rule), timed; a missed one comes back later
  function stepDrill(intro) {
    const items = L.table ? L.table.map(f => ({ q: f.q, ex: expr(L.op, f) + ' = ?', a: f.r, say: f.t, pic: () => dotsFor(L.op, f.a, f.b) }))
      : L.rules.filter(r => r.quiz !== false).map(r => ({ q: r.q, ex: `? ${r.a} = 1 ${r.b}`, a: r.n, say: r.t, pic: () => el('div', 'pic', picFor(r.t)) }));
    let queue = shuffle(items), done = 0, miss = 0, tries = 0, streak = 0, t0 = 0, cur;
    const key = `${bookId}:${L.n}`, best = kidMap(S.best);
    const col = el('div', 'qa'); $('stage').appendChild(col);
    const top = el('div', 'row'); const timer = el('div', 'timer'); const fire = el('div', 'timer'); top.append(timer, fire);
    const ex = el('div', 'expr'); const qd = el('div', 'note'); const picBox = el('div'); picBox.style.minHeight = '0';
    const pad = numPad(check);
    col.append(top, ex, qd, picBox, pad.el);
    const showB = btn('๐Ÿ‘€ Show me', () => { picBox.innerHTML = ''; picBox.appendChild(cur.pic()); }, 'ghost');
    $('controls').appendChild(showB);
    const tick = setInterval(() => { if (t0) timer.textContent = `โฑ ${Math.round((Date.now() - t0) / 1000)}s` + (best[key] ? `  (best ${best[key]}s)` : ''); }, 500);
    function ask() {
      if (!queue.length) {
        const secs = Math.round((Date.now() - t0) / 1000);
        let msg = `${secs} seconds!`;
        if (!best[key] || secs < best[key]) { if (best[key]) msg += ' New best time! ๐Ÿ†'; best[key] = secs; save(); }
        toast(msg, 1800); return setTimeout(() => next(starsFor(miss, items.length)), 1800);
      }
      cur = queue[0]; tries = 0; pad.clear(); picBox.innerHTML = '';
      ex.textContent = cur.ex; ex.className = 'expr' + (cur.ex.length > 12 ? ' long' : ''); qd.textContent = cur.q;
      $('hint').textContent = `${done + 1} of ${items.length}`;
      sayAgain = () => speak(cur.q); sayAgain();
      if (!t0) t0 = Date.now();
    }
    function check(v) {
      if (v === cur.a) {
        beep(true); pad.set(v, 'ok'); streak++; fire.textContent = streak >= 3 ? `๐Ÿ”ฅ ${streak}` : '';
        queue.shift(); done++; setTimeout(ask, 600);
      } else if (++tries < 2) { beep(false); pad.bad(); miss++; streak = 0; fire.textContent = ''; speak(P.tryAgain); }
      else {   // show it, say the book's line, and ask it again later
        pad.set(cur.a, 'ok'); picBox.innerHTML = ''; picBox.appendChild(cur.pic());
        const it = queue.shift(); queue.splice(Math.min(3, queue.length), 0, it);
        speak(cur.say).then(() => wait(600)).then(ask);
      }
    }
    cleanup = () => { clearInterval(tick); pad.stop(); };
    afterIntro(intro, ask);
  }

  // story problems: the book's questions, one answer at a time; two misses shows the answer and the book's solution
  function stepProblems(intro) {
    const qs = L.qs, posKey = `${bookId}:${L.n}`, pos = kidMap(S.pos);
    let qi = pos[posKey] || 0, pi = 0, tries = 0, miss = 0, si = 0, busy = false;
    if (qi >= qs.length) qi = 0;
    const col = el('div', 'qa'); $('stage').appendChild(col);
    const pic = el('div', 'pic'); const qd = el('div', 'q'); const seq = el('div', 'seq'); const sol = el('div', 'sol');
    const pad = numPad(check);
    col.append(pic, qd, seq, sol, pad.el);
    initTray();
    $('controls').append(btn('๐Ÿงฎ Counters', () => $('tray').classList.toggle('on')), btn('Finish later', () => { pos[posKey] = qi; save(); leave(); }, 'ghost parent'));
    if (L.note) $('hint').textContent = L.note;
    const Q = () => qs[qi], Pt = () => Q().parts[pi];
    function render() {
      const q = Q(); qd.innerHTML = '';
      q.parts.forEach((p, k) => {
        qd.appendChild(el('span', 'pt' + (k === pi ? ' cur' : k < pi ? '' : ''), p.t + ' '));
        if (k < pi) qd.appendChild(el('span', 'got' + (p.missed ? ' miss' : ''), p.seq || p.open ? 'โœ“' : (p.f || p.a)));
        if (k < q.parts.length - 1) qd.append(' ');
      });
      pic.textContent = picFor(q.parts[0].t);
      seq.innerHTML = '';
      const p = Pt(); if (p && p.seq) p.seq.forEach((v, k) => seq.appendChild(el('span', k < si ? 'got' : k === si ? 'cur' : '', k < si ? v : '?')));
      const cur = seq.querySelector('.cur'); if (cur) cur.scrollIntoView({ block: 'nearest' });
    }
    function ask(sayIt) {
      if (qi >= qs.length) { pos[posKey] = 0; save(); return next(starsFor(miss, qs.reduce((n, q) => n + q.parts.length, 0))); }
      tries = 0; pad.clear(); sol.textContent = '';
      const p = Pt(); if (p.seq && si === 0) si = 1;   // the first number of a count is given
      pad.frac(p.f); pad.show(!p.open); openB.style.display = p.open ? '' : 'none';
      render();
      $('hint').textContent = `Question ${qi + 1} of ${qs.length}`;
      sayAgain = () => speak(p.s || p.t, p.open ? 'Answer out loud, then tap Next.' : null);
      if (sayIt !== false) sayAgain();
    }
    function advance() {
      busy = false; const q = Q();
      if (++pi < q.parts.length) { si = 0; return ask(); }
      if (q.sol && !q.shown) { q.shown = true; sol.textContent = q.sol; }
      qi++; pi = 0; si = 0; pos[posKey] = qi; save();
      setTimeout(() => ask(), q.sol && sol.textContent ? 600 : 0);
    }
    function check(v) {
      if (busy) return; const p = Pt();
      const want = p.seq ? p.seq[si] : p.f || p.a;
      const norm = s => String(s).trim().replace(/\s+/g, ' ');
      if (p.ex ? p.ex.includes(norm(v)) : p.f ? sameVal(v, p.f) : v === want || (!p.seq && p.alt && p.alt.includes(v))) {
        beep(true); pad.set(v, 'ok'); tries = 0;
        if (p.seq) { if (++si >= p.seq.length) { busy = true; render(); return setTimeout(() => { si = 0; advance(); }, 700); } setTimeout(() => { pad.clear(); render(); }, 350); return; }
        busy = true; speak(P.yes); setTimeout(advance, 900); return;
      }
      miss++;
      if (++tries < 2) { beep(false); pad.bad(); speak(P.tryAgain); return; }
      // second miss: show the answer, say it, and the book's solution when there is one
      busy = true; pad.set(want, 'ok'); tries = 0;
      const q = Q(), last = !p.seq && pi === q.parts.length - 1;
      if (last && q.sol) { sol.textContent = q.sol; q.shown = true; }
      if (p.seq) { si++; if (si >= p.seq.length) { si = 0; p.missed = true; return speak('ans:' + want).then(() => advance()); } return speak('n:' + want).then(() => { busy = false; pad.clear(); render(); }); }
      p.missed = true;
      speak('ans:' + want, last && q.sol ? q.sol : null).then(() => wait(800)).then(advance);
    }
    // a question answered out loud to a grown-up: no typing, just Next
    const openB = btn('Next โ–ถ', () => { if (busy) return; busy = true; beep(true); setTimeout(advance, 300); }, 'big'); openB.style.display = 'none';
    col.appendChild(openB);
    cleanup = () => pad.stop();
    afterIntro(intro, () => ask());
  }

  function finish() {
    const vals = Object.values(scores), stars = Math.max(1, Math.round(vals.reduce((a, b) => a + b, 0) / Math.max(1, vals.length)));
    const p = prog(bookId), old = (p[L.n] || {}).stars || 0;
    p[L.n] = { stars: Math.max(old, stars), at: Date.now() };
    const got = kidMap(S.stickers), sk = stkKey(bookId, L.n); const sticker = got[sk] || STICKERS[(L.n * 7 + SHELF.findIndex(b => b.id === bookId) * 3) % STICKERS.length]; got[sk] = sticker;
    save();
    $('stepTitle').textContent = `${S.kid}, you finished Lesson ${L.n}!`;
    $('stage').innerHTML = `<div class="col"><div class="stars">${starStr(stars)}</div><div class="stk">${sticker}</div><div class="note">A new sticker for your sticker book!</div></div>`;
    $('hint').textContent = ''; $('controls').innerHTML = '';
    $('controls').append(btn('Lessons', () => openBook(bookId), 'big'), btn('Sticker book', () => go('stickers')));
    beep(true); speak(`Great job, ${S.kid}!`, P.done);
  }

  Promise.all([
    fetch('prompts.json').then(r => r.json()).then(j => { P = j; }),
    ...SHELF.filter(b => !b.soon).map(b => fetch(`books/${b.id}.json`).then(r => r.json()).then(j => { BOOKS[b.id] = j; })),
    ...SHELF.filter(b => !b.soon).map(b => fetch(`audio/${b.id}.json`).then(r => r.ok ? r.json() : null).then(j => {
      if (!j) return; if (!AUDIO) AUDIO = { speeds: j.speeds, items: {} }; Object.assign(AUDIO.items, j.items);
    }).catch(() => {}))
  ]).then(home, () => toast('Could not load the book. Check the internet.', 4000));
  return { go, leave, debug: () => ({ S, L, steps, stepIdx, scores }), wordsToNumber };
})();
EOF

index.html: the screens and the dark look.

cat > /root/rays-rebuild/index.html <<'EOF'
<!doctype html>
<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="theme-color" content="#121212">
<title>Ray's Arithmetic</title>
<link rel="icon" type="image/png" sizes="192x192" href="icon-192.png">
<link rel="manifest" href="manifest.webmanifest">
<link rel="apple-touch-icon" href="icon-192.png">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Ray's Math">
<style>
:root{color-scheme:dark;--paper:#121212;--ink:#ececec;--soft:#a8a8a8;--accent:#2f8fbf;--warm:#d9733f;--good:#3fae6e;--bad:#ff6b5e;--board:#1d3527;--card:#1e1e1e;--line:#6a6a6a;--hi:#1f3340;--a:#f0a03c;--b:#5ab4f0}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--paper);color:var(--ink);font-family:Georgia,"Times New Roman",serif;overflow:hidden;user-select:none;-webkit-user-select:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.screen{position:absolute;inset:0;display:none;flex-direction:column;padding:10px 16px}
.screen.on{display:flex}
h1{margin:4px 0 10px;font-size:clamp(26px,6vmin,44px);text-align:center;letter-spacing:.04em}
h2{margin:4px 0;font-size:clamp(19px,4.2vmin,30px);text-align:center}
button{font:inherit;font-size:clamp(18px,4vmin,26px);border:3px solid var(--line);background:var(--card);color:var(--ink);border-radius:14px;padding:8px 16px;min-height:50px;cursor:pointer}
button:active{transform:scale(.96)}
button.big{background:var(--accent);color:#fff;border-color:#164a63;font-size:clamp(21px,4.6vmin,30px);padding:12px 26px}
button.ghost{border-color:transparent;background:transparent}
button:disabled{opacity:.35}
.row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;align-items:center}
.grow{flex:1;min-height:0;position:relative}
.kids button{min-width:30vmin;font-size:clamp(24px,6vmin,40px)}
.kids button.sel{background:var(--accent);border-color:var(--accent);color:#fff}
#home{overflow-y:auto}
.shelf{display:flex;gap:3vmin;justify-content:center;flex-wrap:wrap;margin-top:3vmin;padding:8px}
.book{width:min(34vmin,210px);aspect-ratio:3/4;border-radius:6px 14px 14px 6px;color:#fff;padding:14px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:inset 10px 0 0 rgba(0,0,0,.18),0 4px 10px rgba(0,0,0,.25);border:none;text-align:left}
.book b{font-size:clamp(18px,4vmin,26px)}.book small{font-size:clamp(13px,2.6vmin,17px);opacity:.9}
.book .bp{font-size:clamp(14px,3vmin,19px);font-weight:bold;background:rgba(0,0,0,.35);border-radius:8px;padding:4px 8px;align-self:flex-start}
.book.soon{filter:grayscale(.6);opacity:.6}
.book.cur{outline:5px solid #ffd166;outline-offset:3px;animation:pulse 1.6s infinite}
.map{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(22vmin,120px),1fr));grid-auto-rows:min(24vmin,120px);gap:12px;overflow-y:auto;padding:6px;align-content:start}
.tile{height:100%;min-height:0;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:clamp(22px,6vmin,38px);padding:4px;line-height:1.1}
.tile small{font-size:clamp(11px,2.4vmin,15px);color:var(--soft)}
.tile .st{font-size:clamp(14px,3vmin,20px);color:#e0a000;letter-spacing:2px}
.tile.next{background:var(--hi);border-color:var(--accent);animation:pulse 1.4s infinite}
.tile.locked{opacity:.35}
.tile.rev{border-style:dashed}
@keyframes pulse{50%{transform:scale(1.05)}}
.top{display:flex;align-items:center;gap:8px}
.top .t{flex:1;text-align:center;font-size:clamp(17px,3.8vmin,26px)}
.steps{display:flex;gap:6px;justify-content:center;margin:4px 0}
.steps i{width:clamp(18px,4vmin,28px);height:clamp(18px,4vmin,28px);border-radius:50%;border:3px solid var(--soft);font-style:normal;font-size:12px;display:flex;align-items:center;justify-content:center}
.steps i.done{background:var(--good);border-color:var(--good)}.steps i.cur{border-color:var(--accent);background:var(--hi)}
.hint{font-size:clamp(15px,3.2vmin,20px);color:var(--soft);text-align:center;min-height:1.4em}
.toast{position:fixed;left:50%;top:40%;transform:translate(-50%,-50%);background:#2a2a2a;border:3px solid var(--accent);color:#fff;padding:18px 28px;border-radius:18px;font-size:clamp(24px,6vmin,40px);display:none;z-index:9;text-align:center}
.stars{font-size:clamp(40px,12vmin,90px);color:#e0a000;text-align:center;letter-spacing:6px}
.parent{font-size:15px;color:var(--soft)}
.col{display:flex;flex-direction:column;align-items:center;gap:1.2vmin;height:100%;overflow-y:auto;justify-content:center}
.big-n{font-size:clamp(70px,22vmin,170px);line-height:1;font-weight:bold}
.word{font-size:clamp(22px,5vmin,36px);color:var(--soft)}
.fact{font-size:clamp(30px,8vmin,64px);text-align:center;line-height:1.15}
.fact .sm{display:block;font-size:clamp(16px,3.4vmin,22px);color:var(--soft)}
.dots{display:flex;flex-wrap:wrap;gap:1.4vmin;justify-content:center;align-items:center;max-width:94vw}
.grp{display:grid;grid-template-columns:repeat(5,auto);gap:.8vmin;padding:1vmin;border-radius:10px;border:2px dashed transparent}
.grp.box{border-color:var(--line)}
.dot{width:clamp(14px,3.6vmin,26px);height:clamp(14px,3.6vmin,26px);border-radius:50%;background:var(--a)}
.dot.b{background:var(--b)}.dot.x{background:#444;position:relative}.dot.x::after{content:'';position:absolute;left:-2px;right:-2px;top:45%;height:3px;background:var(--bad);transform:rotate(-35deg)}
.op{font-size:clamp(26px,6vmin,44px);color:var(--soft)}
.chips{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-height:24vh;overflow-y:auto}
.chip{font-size:clamp(14px,3vmin,19px);min-height:38px;padding:4px 10px;border-radius:10px}
.chip.cur{background:var(--hi);border-color:var(--accent)}.chip.seen{border-color:var(--good)}
.balls{display:flex;flex-wrap:wrap;gap:2vmin;justify-content:center;max-width:90vw}
.ball{width:clamp(44px,11vmin,80px);height:clamp(44px,11vmin,80px);border-radius:50%;border:none;background:radial-gradient(circle at 35% 30%,#ffd9a8,var(--warm) 60%,#7a3412);padding:0;min-height:0;font-size:clamp(18px,4vmin,28px);color:#fff;font-weight:bold}
.ball.on{background:radial-gradient(circle at 35% 30%,#b8f0c8,var(--good) 60%,#1b5a35)}
.rods{display:flex;gap:1vmin;align-items:flex-end;justify-content:center;flex-wrap:wrap}
.rod{display:grid;grid-template-rows:repeat(10,1fr);gap:2px;height:clamp(110px,26vmin,190px);width:clamp(14px,3.4vmin,22px)}
.rod i{background:var(--b);border-radius:3px}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2vmin;width:min(90vw,520px)}
.choices button{font-size:clamp(40px,12vmin,86px);min-height:clamp(80px,18vmin,140px)}
.choices button.ok{background:var(--good);border-color:var(--good);color:#fff}.choices button.no{animation:shake .4s}
@keyframes shake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.grid{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;overflow-y:auto;max-height:100%;align-content:flex-start;padding:4px}
.grid button{min-width:clamp(56px,14vmin,90px);font-size:clamp(24px,6vmin,40px)}
.grid button.seen{border-color:var(--good)}
/* question + number pad */
.qa{display:flex;flex-direction:column;align-items:center;gap:1vmin;height:100%;min-height:0}
.q{font-size:clamp(20px,4.6vmin,34px);line-height:1.35;text-align:center;overflow-y:auto;max-height:42%;padding:4px 10px;border-radius:12px}
.q .pt{opacity:.55}.q .pt.cur{opacity:1;background:var(--hi);border-radius:8px;padding:0 4px}
.q .got{display:inline-block;background:var(--good);color:#fff;border-radius:8px;padding:0 8px;margin:0 4px;font-weight:bold}
.q .miss{background:var(--warm)}
.pic{font-size:clamp(30px,8vmin,56px);line-height:1}
.expr{font-size:clamp(46px,13vmin,100px);font-weight:bold;line-height:1.05;text-align:center}
.micb{min-width:min(86vw,360px);font-size:clamp(20px,4.6vmin,30px)}.micb.live{background:var(--bad);border-color:var(--bad);color:#fff;animation:pulse 1s infinite}
.expr.long{font-size:clamp(28px,7vmin,52px)}
.entry{min-width:3.4em;min-height:1.3em;font-size:clamp(36px,9vmin,64px);text-align:center;border-bottom:4px solid var(--accent);font-weight:bold;letter-spacing:.05em}
.entry.no{animation:shake .4s;border-color:var(--bad)}.entry.ok{color:var(--good)}
.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2vmin;width:min(86vw,360px)}
.pad button{font-size:clamp(24px,6vmin,38px);min-height:clamp(46px,9.5vmin,70px);padding:0}
.pad button.okb{background:var(--good);border-color:var(--good);color:#fff}
.seq{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-height:22vh;overflow-y:auto}
.seq span{min-width:2.2em;text-align:center;border:2px solid var(--line);border-radius:8px;padding:2px 6px;font-size:clamp(18px,4vmin,28px)}
.seq span.got{border-color:var(--good);color:var(--good)}.seq span.cur{border-color:var(--accent);background:var(--hi)}
.sol{font-size:clamp(16px,3.4vmin,22px);color:#ffd166;text-align:center;max-width:90vw}
.tray{position:fixed;left:50%;bottom:2vh;transform:translateX(-50%);background:#1a1a1a;border:3px solid var(--accent);border-radius:16px;padding:10px;z-index:20;display:none;flex-direction:column;align-items:center;gap:8px}
.tray.on{display:flex}
.frame{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}
.frame button{width:clamp(26px,6.5vmin,44px);height:clamp(26px,6.5vmin,44px);min-height:0;border-radius:50%;padding:0;border-width:2px}
.frame button.on{background:var(--a);border-color:var(--a)}
.timer{font-size:clamp(16px,3.4vmin,22px);color:var(--soft)}
.stk{font-size:clamp(40px,10vmin,72px)}
.stickers{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;overflow-y:auto;font-size:clamp(34px,9vmin,60px)}
.stickers span{width:1.5em;height:1.5em;display:flex;align-items:center;justify-content:center;border:2px dashed var(--line);border-radius:12px}
.stickers span.got{border:2px solid #e0a000;background:#2a2410}
canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;border-radius:14px}
.paper{background:#1a1a1a;border:3px solid var(--line);border-radius:14px}
.note{font-size:clamp(13px,2.8vmin,17px);color:var(--soft);text-align:center;max-width:90vw}
</style>
</head><body>

<section id="home" class="screen on">
  <h1>Ray's Arithmetic</h1>
  <h2>Who is doing math today?</h2>
  <div class="row kids" id="kids"></div>
  <div class="shelf" id="shelf"></div>
  <div class="row" style="margin-top:auto"><button class="ghost parent" id="speedBtn">Voice: normal</button><button class="ghost parent" id="toStickers">Sticker book</button></div>
</section>

<section id="map" class="screen">
  <div class="top"><button onclick="Rays.go('home')">โ—€</button><div class="t" id="mapTitle"></div></div>
  <div class="map grow" id="tiles"></div>
</section>

<section id="lesson" class="screen">
  <div class="top"><button onclick="Rays.leave()">โ—€</button><div class="t" id="lesTitle"></div><button id="sayBtn" title="Say it again">๐Ÿ”Š</button></div>
  <div class="steps" id="steps"></div>
  <h2 id="stepTitle"></h2>
  <div class="grow" id="stage"></div>
  <div class="hint" id="hint"></div>
  <div class="row" id="controls"></div>
</section>

<section id="stickers" class="screen">
  <div class="top"><button onclick="Rays.go('home')">โ—€</button><div class="t" id="stkTitle">Sticker book</div></div>
  <div class="stickers grow" id="stkList"></div>
</section>

<div class="tray" id="tray"><div class="frame" id="frame"></div><div class="row"><b id="trayN">0</b><button id="trayClear">Clear</button><button id="trayClose">Close</button></div></div>
<div class="toast" id="toast"></div>
<script src="hershey.js"></script>
<script src="trace.js"></script>
<script src="app.js"></script>
<script>if ('serviceWorker' in navigator) navigator.serviceWorker.register('sw.js').catch(() => {});</script>
</body></html>
EOF

sw.js: offline support (now keeps Book 2 too).

cat > /root/rays-rebuild/sw.js <<'EOF'
// Offline support. App files: network first (so updates show), cached copy when offline.
// Voice clips (audio/*.mp3) never change for a given name: cache first, saved the first time they play.
const SHELL = 'rays-shell-v6', CLIPS = 'rays-clips-v1';
const FILES = ['./', 'index.html', 'app.js', 'prompts.json', 'trace.js', 'hershey.js', 'books/primary1877.json', 'audio/primary1877.json', 'books/intellectual.json', 'audio/intellectual.json', 'icon-192.png', 'manifest.webmanifest'];
self.addEventListener('install', e => { e.waitUntil(caches.open(SHELL).then(c => Promise.all(FILES.map(f => c.add(f).catch(() => {})))).then(() => self.skipWaiting())); });
self.addEventListener('activate', e => {
  e.waitUntil(caches.keys().then(ks => Promise.all(ks.filter(k => k.startsWith('rays-') && k !== SHELL && k !== CLIPS).map(k => caches.delete(k)))).then(() => self.clients.claim()));
});
self.addEventListener('fetch', e => {
  const r = e.request; if (r.method !== 'GET' || new URL(r.url).origin !== location.origin) return;
  if (r.url.endsWith('.mp3')) {
    e.respondWith(caches.open(CLIPS).then(c => c.match(r).then(hit => hit || fetch(r).then(res => { if (res.ok && res.status === 200) c.put(r, res.clone()); return res; }))));
    return;
  }
  e.respondWith(fetch(r).then(res => { if (res.ok) caches.open(SHELL).then(c => c.put(r, res.clone())); return res; }).catch(() => caches.match(r)));
});
EOF

Rebuild, step by step

1. Build the book data

PC (PowerShell). It prints "80 lessons, 1853 questions, 3551 answers", or a list of problems if an answer is wrong:

powershell -ExecutionPolicy Bypass -File C:\RaysArithmetic\tools\make-book.ps1 -Book intellectual

2. Record the voice

PC (PowerShell), about 10 minutes:

powershell -ExecutionPolicy Bypass -File C:\RaysArithmetic\tools\make-audio.ps1 -Id intellectual

3. Put it on the server

PC (PowerShell). -Audio sends only the recordings CT 306 (abc-web) doesn't have yet. It ends with "RAYS-DONE":

powershell -ExecutionPolicy Bypass -File C:\RaysArithmetic\deploy.ps1 -Audio

4. Check it

Open https://abcbooks.fyi/rays/ , tap a name, and tap the purple Book 2. Lesson 1 should read its first question aloud ("James had 1 apple..."). Lessons open one after another, as in Book One.

Troubleshooting

  • Book 2 says "Coming soon": app.js still has soon: true on the intellectual line of the shelf, or books/intellectual.json is missing on the server.
  • Book 2 is silent: count the MP3s. Proxmox web UI, pve, Shell:
pct exec 306 -- ls /var/www/abcbooks/rays/audio/s60 | wc -l

Books 1 and 2 share clips, so this is about 7,700 with both books. If it is lower, run step 3 again with -Audio. Also check that audio/intellectual.json exists next to it:

pct exec 306 -- ls -l /var/www/abcbooks/rays/audio/intellectual.json
  • make-book.ps1 lists problems: each line names the lesson and question and what the answer should be. Fix it in intellectual.txt.
  • A right fraction answer is marked wrong: the question may be an "exact form" one ({=...} in the source); the hint shows the form it wants.
  • An old version shows after an update: change rays-shell-v6 in sw.js to the next number, deploy, and reload the page twice.

Notes

  • Stickers are kept per book and per kid, so Book 2 has its own sticker page.
  • Next on the shelf: Book 3, Ray's New Practical Arithmetic (Grades 5-6).