If \(X\) and \(Y\) are two independent events such that \(P (X) = \frac{1}{8}\) and…