Given the problem, let's define the variables:
Let \( x \) be the number of defective cricket balls,
\( y \) be the number of defective tennis balls,
\( z \) be the number of defective rubber balls.
We have the following counts:
Cricket balls: 6,
Tennis balls: 5,
Rubber balls: 4.
Total balls = 6 + 5 + 4 = 15.
The conditions given are:
From the second condition:
\[\frac{x+y+z}{15} = \frac{2y}{5}\]
Simplifying, we get:
\[x+y+z = 6y\]
Rearranging gives us:
\[x+z = 5y \tag{1}\]
Analyzing Equation (1):
\(x\) and \(y\) must be integers as they represent counts of balls. We also need to satisfy the conditions:
\[\frac{x}{6} > \frac{y}{5}\] and \[\frac{x}{6} < \frac{z}{4}\].
Substitute expressions for \(z\) from \(x+z=5y\) into inequalities:
Considering integer solutions that satisfy constraints from (2) and (3), particularly \(5x > 6y\) and \(x < 3y\), we test possible \(y\):
Thus if \(y=2\) then \(x=3\), \(z=5y-x=10-3=7\), doesn't exist since \(z\) should be 4 or less.
The only solution satisfying the constraints is \(y=1\), \(x=2\) and \(z=3\). Thus, the number of defective rubber balls is exactly 3.