What number completes the pattern? Note that there is a single algebraic equation (limited to the basic arithmetic operations of addition, subtraction, multiplication, and division) that repeats across all rows.
the pattern is
9 1 6 4
4 5 7 2
5 8 8 5
1 3 5 ?