You have to check pattern. Many times we have patterns in question.
In this question first two digits makes sum equal to last two digits. And its clear that for first two digits we have no case in which first digit is zero.
Now we have to find number of ways.
Sum of first two and last two digits from 1 to 9 -
Case 1:
Sum = 1
We have (1,0) for left and (1,0),(0,1) for right.
Number of ways = 1*2
Case 2:
Sum = 2
We have (1,1)(2,0) for left and (1,1),(2,0),(0,2) for right.
Number of ways = 2*3
Case 3:
Sum = 3
We have (1,2),(2,1),(3,0) for left and (1,2),(2,1),(3,0),(0,3) for right.
Number of ways = 3*4
As you can see if sum is 1 then 1 way for left digits and (left + 1) ways for right. If sum 2 then 2 ways for left and 3 for right. Right = left + 1 ways.
Case 9:
So for sum = 9. We have 9 ways for left and 10 for right digits.
Number of ways = 9*10
Combining this. We have 1*2+2*3+3*4+4*5+......+9×10
= $\frac{n(n+1)(n+2)}{3}$
Here n is number of terms.
= $\frac{9×10×11}{3}$
= 330
Sum of first two and last two digits from 10 to 18 -
Case 1:
Sum = 10
We have (1,9),(2,8),(3,7),(4,6),(5,5),(6,4),(7,3),(8,2),(9,1) for left and (1,9),(2,8),(3,7),(4,6),(5,5),(6,4),(7,3),(8,2),(9,1) for right.
Number of ways = 9*9
Case 2:
Sum = 11
We have (2,9),(3,8),(4,7),(5,6),(6,5),(7,4),(8,3),(9,2) for left and (2,9),(3,8),(4,7),(5,6),(6,5),(7,4),(8,3),(9,2) for right.
Number of ways = 8*8
Case 3:
Sum = 12
We have (3,9),(4,8),(5,7),(6,6),(7,5),(8,4),(9,3) for left and (3,9),(4,8),(5,7),(6,6),(7,5),(8,4),(9,3) for right.
Number of ways = 6*6
**Case 9:*"
So on for sum = 18
We have (9,9) for left digits and (9,9) for right digits.
Number of ways = 1*1
From sum 10 to 18 we have left and right ways equal.
Combining this we have-
9*9+8*8+7*7+........+1*1
= $\frac{n(n+1)(2n+1)}{6}$
Here n is number of terms.
= $\frac{9*10*19}{6}$
= 285
So total number of ways = 330 + 285 = 615