Answer:
The answer is: small+large.
Step-by-step explanation:
If the variable of the smaller sheetrock is stored in small:
var small.
And the variable of the larger sheetrock is stored in large:
var large.
The length of the wall will be the sum of the two pieces of sheetrock:
For example:
var small = 5;
var large = 10;
small+large = 5 + 10 = 15 is the length of the wall.
First, you divide the price by the amount of units in the pack. This is how you find how much one unit is worth in that pack. So for the first pack you divide 1.12 by three, and then you have .37333 repeating, which is about 38 cents. Next is the second pack, where we divide 4.38 by 12 which is .365, which is about 37 cents. The last pack is 8.68 divided by 24 which is .361, or about 36 cents. This means that the 24 pack is the best buy.
In real life you should also consider which would be too much for you or not enough. For example, you might not even need 24 units of juice. You might only need 12 so you don't have too much extra. But hey, this is just a math problem ;)
It Is True . For A Function Each Input Should Only Have One OutPut .
Example ❤️ :
Input | Output
01 | 05
02. | 08
03. | 06
It Wouldn't Be A Function If The Input Had Repeated
Example ❤️ :
Input | Output
07. | 03
09. | 01
09. | 12
03. | 02
You must do 1/2 times base times height