Let event A be rolling a 2 or 4 on the first cube
Let event B be rolling a 5 on the second cube
We want to find the probability that both event A and event B happen
The probability that event A will happen is 2 out of 6 (since 2 and 4 are two numbers out of 6 possible numbers) or 1/3.
The probability that event B will happen is 1 out of 6 (since 1 is one number out of 6 possible numbers)
Since what you roll on the individual cubes are independent events (what you roll on one cube has no effect on what you'll roll on the other cube), the probability that both events A and B will happen is equal to the product of their individual probabilities:
P(A and B) = P(A) * P(B) = 1/3 * 1/6 = 1/18