im making app calculates amount of grams of food should on plate in meal, depending on amount of calories user types in (and want eat).
i have database have on 2000 products user can search in. let´s user searched potatoe. when user searches potatoe , have decided -"i want eat 200 calories(i got input field this) of potatoe" , program tell user how many grams user needs eat amount.
i can´t life figure out math want. have done something, can see result of equation it´s not correct.
x = calories in product per 100 grams (83.4 potatoe) y = user input of amount calories wanted z = ? (x / 100) * y = z
you want inverse:
(y / x) * 100 = z