Risk Calculation matrix
I have this risk calculation matrix (Table below) at work that I need to automate
Briefly, the risk can be calculated by Likelihood and the consequences of an hazard.
e.g. if a user select one cell ("Likelihood") with D and selects the second cell ("Consequences") with 3. Then I want the third cell showing the risk calculated to be M.
The problem is there are so many combinations here, so I don't know what to do.
Anyone can help with the JavaScript of this?

