Answer is 2.
The first 2 lines are statements with no connectivity with the last as there is no operator at the far right. The last line follows the normal math rules which means that in the absence of parenthesis you do all multiplication and division first (moving left to right) and after that all addition and subtraction (left to right). So for the last line you have...
1 + 1 x 0 + 1 = ?
Which, if you parenthesized it for the natural application of operations, would look like...
1 + (1 x 0) + 1 = ?
So doing the math you have...
1 + 0 + 1 = 2
Now, you can argue that the first two lines still must be dealt with, in which case you would have ...
5
5
2
But if you are solving for the ? then the answer is 2.