randRange( 3, 12 ) randRange( 1, ITEMS_PER_GROUP - 1 ) randRange( 2, 12 ) GROUPS * ITEMS_PER_GROUP ITEMS_IN_GROUPS + ITEMS_LEFT getNontrivialFactor( TOTAL_ITEMS ) TOTAL_ITEMS / NEW_ITEMS_PER_GROUP

person(1) is putting plural_form(item(1)) into plural_form(group(1)).

person(1) puts ITEMS_PER_GROUP item(1) in each group(1).

person(1) puts ITEMS_PER_GROUP plural_form(item(1), ITEMS_PER_GROUP) in each group(1).

He will fill GROUPS group(1).

He will fill GROUPS plural_form(group(1), GROUPS).

He will have ITEMS_LEFT item(1) left over.

He will have ITEMS_LEFT plural_form(item(1), ITEMS_LEFT) left over.

If he instead puts NEW_ITEMS_PER_GROUP item(1) in each group(1), how many plural_form(group(1)) of plural_form(item(1)) can he fill?

If he instead puts NEW_ITEMS_PER_GROUP plural_form(item(1), NEW_ITEMS_PER_GROUP) in each group(1), how many plural_form(group(1)) of plural_form(item(1)) can he fill?

person(1) is putting plural_form(item(1)) into plural_form(group(1)).

person(1) puts ITEMS_PER_GROUP item(1) in each group(1).

person(1) puts ITEMS_PER_GROUP plural_form(item(1), ITEMS_PER_GROUP) in each group(1).

She will fill GROUPS group(1).

She will fill GROUPS plural_form(group(1), GROUPS).

She will have ITEMS_LEFT item(1) left over.

She will have ITEMS_LEFT plural_form(item(1), ITEMS_LEFT) left over.

If she instead puts NEW_ITEMS_PER_GROUP item(1) in each group(1), how many plural_form(group(1)) of plural_form(item(1)) can she fill?

If she instead puts NEW_ITEMS_PER_GROUP plural_form(item(1), NEW_ITEMS_PER_GROUP) in each group(1), how many plural_form(group(1)) of plural_form(item(1)) can she fill?

NEW_GROUPS plural( group(1) )

There are GROUPS group(1).There are GROUPS plural_form(group(1), GROUPS). There are ITEMS_PER_GROUP item(1).There are ITEMS_PER_GROUP plural_form(item(1), ITEMS_PER_GROUP). Each group(1) results in GROUPS \times ITEMS_PER_GROUP = ITEMS_IN_GROUPS plural_form(item(1)).

ITEMS_IN_GROUPS item(1) plus ITEMS_LEFT left over equals TOTAL_ITEMS total plural_form(item(1)).

ITEMS_IN_GROUPS plural_form(item(1), ITEMS_IN_GROUPS) plus ITEMS_LEFT left over equals TOTAL_ITEMS total plural_form(item(1)).

TOTAL_ITEMS item(1) divided into groups of NEW_ITEMS_PER_GROUP is TOTAL_ITEMS \div NEW_ITEMS_PER_GROUP = NEW_GROUPS plural_form(group(1)).

TOTAL_ITEMS plural_form(item(1), TOTAL_ITEMS) divided into groups of NEW_ITEMS_PER_GROUP is TOTAL_ITEMS \div NEW_ITEMS_PER_GROUP = NEW_GROUPS plural_form(group(1)).

randRange( 4, 12 ) randRange( 4, 12 ) randRange( 4, 12 ) ITEM_1_COUNT * ITEM_1_COST TOTAL_SPENT_ON_1 + ITEM_2_COST

person(1) bought ITEM_1_COUNT storeItem(1, 1), all costing the same amount, from the store(1) store.

person(1) bought ITEM_1_COUNT plural_form(storeItem(1, 1), ITEM_1_COUNT), all costing the same amount, from the store(1) store.

He also bought a storeItem(1, 2) for ITEM_2_COST dollar.

He also bought a storeItem(1, 2) for ITEM_2_COST dollars.

He spent a total of TOTAL_SPENT dollar.

He spent a total of TOTAL_SPENT dollars.

How much did each storeItem(1, 1) cost?

person(1) bought ITEM_1_COUNT storeItem(1, 1), all costing the same amount, from the store(1) store.

person(1) bought ITEM_1_COUNT plural_form(storeItem(1, 1), ITEM_1_COUNT), all costing the same amount, from the store(1) store.

She also bought a storeItem(1, 2) for ITEM_2_COST dollar.

She also bought a storeItem(1, 2) for ITEM_2_COST dollars.

She spent a total of TOTAL_SPENT dollar.

She spent a total of TOTAL_SPENT dollars.

How much did each storeItem(1, 1) cost?

\$ITEM_1_COST

He spent a total of TOTAL_SPENT dollar.He spent a total of TOTAL_SPENT dollars. He also spent ITEM_2_COST dollar on a storeItem(1, 2), so he must have spent a total of TOTAL_SPENT - ITEM_2_COST = TOTAL_SPENT_ON_1 dollars on plural_form(storeItem(1, 1)).He also spent ITEM_2_COST dollars on a storeItem(1, 2), so he must have spent a total of TOTAL_SPENT - ITEM_2_COST = TOTAL_SPENT_ON_1 dollars on plural_form(storeItem(1, 1)).

She spent a total of TOTAL_SPENT dollar.She spent a total of TOTAL_SPENT dollars. She also spent ITEM_2_COST dollar on a storeItem(1, 2), so she must have spent a total of TOTAL_SPENT - ITEM_2_COST = TOTAL_SPENT_ON_1 dollars on plural_form(storeItem(1, 1)).She also spent ITEM_2_COST dollars on a storeItem(1, 2), so she must have spent a total of TOTAL_SPENT - ITEM_2_COST = TOTAL_SPENT_ON_1 dollars on plural_form(storeItem(1, 1)).

He bought ITEM_1_COUNT storeItem(1, 1).He bought ITEM_1_COUNT plural_form(storeItem(1, 1), ITEM_1_COUNT). He spent TOTAL_SPENT_ON_1 dollar on the purchase.He spent TOTAL_SPENT_ON_1 dollars on the purchase. So he must have spent TOTAL_SPENT_ON_1 \div ITEM_1_COUNT = ITEM_1_COST dollars on each storeItem(1, 1).

She bought ITEM_1_COUNT storeItem(1, 1).She bought ITEM_1_COUNT plural_form(storeItem(1, 1), ITEM_1_COUNT). She spent TOTAL_SPENT_ON_1 dollar on the purchase.She spent TOTAL_SPENT_ON_1 dollars on the purchase. So she must have spent TOTAL_SPENT_ON_1 \div ITEM_1_COUNT = ITEM_1_COST dollars on each storeItem(1, 1).

randRange( 10, 99 ) getNontrivialFactor( TOTAL_ITEMS ) TOTAL_ITEMS / ITEMS getNontrivialFactor( TOTAL_ITEMS ) TOTAL_ITEMS / NEW_ITEMS

person(1) has a bunch of plural_form(item(1)).

person(1) places ITEMS item(1) in each group(1).

person(1) places ITEMS plural_form(item(1), ITEMS) in each group(1).

He ends up with GROUPS group(1).

He ends up with GROUPS plural_form(group(1), GROUPS).

If he wants NEW_GROUPS group(1), how many plural_form(item(1)) should he put in each group(1)?

If he wants NEW_GROUPS plural_form(group(1), NEW_GROUPS), how many plural_form(item(1)) should he put in each group(1)?

person(1) has a bunch of plural_form(item(1)).

person(1) places ITEMS item(1) in each group(1).

person(1) places ITEMS plural_form(item(1), ITEMS) in each group(1).

She ends up with GROUPS group(1).

She ends up with GROUPS plural_form(group(1), GROUPS).

If she wants NEW_GROUPS group(1), how many plural_form(item(1)) should she put in each group(1)?

If she wants NEW_GROUPS plural_form(group(1), NEW_GROUPS), how many plural_form(item(1)) should she put in each group(1)?

NEW_ITEMS plural( item(1) )

plural( ITEMS, item(1) ) \times plural( GROUPS, group(1) ) = plural( TOTAL_ITEMS, item(1) )

If we divide the TOTAL_ITEMS item(1) into plural_form( group(1) ).If we divide the TOTAL_ITEMS plural_form(item(1), TOTAL_ITEMS) into plural_form( group(1) ). This gives us NEW_GROUPS group(1), then we get TOTAL_ITEMS \div NEW_GROUPS = NEW_ITEMS plural_form(item(1)) per group(1).This gives us NEW_GROUPS plural_form(group(1), NEW_GROUPS), then we get TOTAL_ITEMS \div NEW_GROUPS = NEW_ITEMS plural_form(item(1)) per group(1).