We can describe FOIL using the distributive property of multiplication. For real numbers x, y, and z the distributive property of multiplication states that
Now let , where v and w are real numbers.
Then
Here, we can again use the distributive property of multiplication to get
Hence, it follows that
This is the method of FOIL (first: xv, outside: xw, inside: yv, last: yw)
First two rolls have to be 1-4 that is 2/3 chance twice and the third can be 4or 5 2/3*2/3*1/3 + the chance that the fourth is the 5 or 6. 2/3*2/3*2/3*1/3
So the solution is : P=2/3*2/3*1/3 + 2/3*2/3*2/3*1/3