I want to calculate the total of inputs of two different columns and display the total in the third column. Using ngmodel and template driven form in angular material table. Below is the format

| 1st | 2nd | total |
| --- | --- | --- |
| 4 | 5 | 9 |