2D-array 5rows X 5 columns matrix HELP

https://drive.google.com/file/d/1GWV9MYs_X4HG0XT4_-wDPPHdWOFwsRJs/view?usp=sharing

Hi, everyone! So, I am trying to create an app that is like a survey app. I am new to coding by the way (less than a month) I have this long-*** code that I am trying to work. Well, it is working except for one more part of the code.

I've been trying to make it work for days now and I cannot seem to figure it out.

I uploaded it in a google drive link above.

This is what it is: If you try to run this code in Xcode, you can see a thing like this:

The app works like this, users select the pickers beside the Criteria and Relative Risk. The scores will show as: Score: 2,4 (just a sample score) criteria = row relative risk = column

what I want to happen is that this score will immediately translate as a coordinate in the risk matrix below. There are 21 sets of pickers for this part of the app. The coordinates can have more than 1 value. so if there are 3 scores that have the same coordinate, such coordinate in the matrix should show 3. There can be coordinates with 0.

the initial value in this risk matrix is 0, (you can see 1 in the photo but this was when I tried to manually input the coordinates in the code.)

it is okay if the matrix will update using a button. meaning when the users have completed all the pickers, then they will click on the button to update the matrix.

this is the part that I cannot figure out and I desperately need help.

Thank you! Hoping someone can help me with this. Best Regards!

2D-array 5rows X 5 columns matrix HELP
 
 
Q