Skip to content

Instantly share code, notes, and snippets.

@jerbear2008
Last active October 30, 2021 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerbear2008/df285ae195030b2130305cef96892970 to your computer and use it in GitHub Desktop.
Save jerbear2008/df285ae195030b2130305cef96892970 to your computer and use it in GitHub Desktop.
Types of Items solver
let valA = 2
let valB = 4
let valTotal = 40
let countTotal = 13
let numerator = valTotal - (valB * countTotal)
let denominator = valA - valB
let countA = numerator / denominator
let countB = countTotal - countA
let object = {
a: countA,
b: countB
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment