In the first 25% of the produce, 7% of that is defective. Which means that 25%*93% is not defective.
=20.75% not defective.
In the second 30% of the produce, 6% is defective Which means that 30%*94%
=28.2% not defective
Now for the 3rd 45% of the produce, 4% is defective which means that
45%*96%
=43.2% not defective.
Added together, 20.75+28.2+43.2=92.15% not defective.
Distances in 2- and 3-dimensions (and even higher dimensions) can be found using the Pythagorean theorem. The straight-line distance can be considered to be the hypotenuse of a right triangle whose sides are the horizontal and vertical differences between the coordinates.
Here, you have A = (0, 0) and B = (3, 6). The horizontal distance between the points is ...
... 3 - 0 = 3 . . . . the difference of x-coordinates
The vertical distance between the points is ...
... 6 - 0 = 6 . . . . the difference of y-coordinates
Then the straight-line distance (d) between the points is found from the Pythagorean theorem, which tells you ...
... d² = 3² + 6²
... d = √(9 + 36) = √45 ≈ 6.7 . . . units