To solve the problem, we need to find the value of \(X\) such that the proportion \(\frac{36}{84} = \frac{42}{X}\) holds true.
Therefore, the correct option is 98. However, there seems to be a mistake because according to the provided options, the answer should be 18. Upon re-evaluation of the calculation or the options, the actual possible correct value would require a verification step in aligning the possible intended answer.