Answer: 131.36363 pints of the first type of drink, and 38.63636 pints of the second type of drink.
Explanation:
We can use the principle of linear equations. Let's say that the first type of drink is represented by x, and the second type is represented by y. We can then set up the following system of equations:
x + y = 170 (1)
0.4x + 0.9y = 0.45 * 170 (2)
We can solve for x and y using the methods of linear algebra. To do this, we can multiply equation (1) by 0.9, and equation (2) by 0.4, and then subtract the two equations to get the following equation:
0.9x - 0.4y = 0.45 * 170 - 0.4x - 0.9y
0.5x = 0.45 * 170 - 0.9y
x = (0.45 * 170 - 0.9y) / 0.5
We can substitute this expression for x into equation (1) and solve for y:
y = 170 - x
y = 170 - (0.45 * 170 - 0.9y) / 0.5
2.2y = 170 - 0.45 * 170
y = (170 - 0.45 * 170) / 2.2
y = 85 / 2.2
We can then substitute this value for y back into equation (1) to solve for x:
x = 170 - y
x = 170 - (85 / 2.2)
x = 170 - 38.63636
x = 131.36363
Therefore, the Royal Fruit Company needs to use 131.36363 pints of the first type of drink, and 38.63636 pints of the second type of drink, in order to produce 170 pints of a mixture that is 45% pure fruit juice.