Hi Soham,
I analyzed the pattern. You have to first identify element using xpath.
/html/body/div[1]/form/div/strong
Now, get text from that element and split string with space " ".
String[] splitStr = text.split(" ");
Now your splitStr[0] will be your first number/number in word format
splitStr[1] will be arithmetic operator (+,-,*,/)
splitStr[2] will be another number/number in word format.
Now from above you can easily find out the calculation and do sendKeys into result text box.
Hope it helps.