score system according to the object added to the array

public class move : MonoBehaviour
{
public GameObject a;
public GameObject b;
public GameObject c;
public GameObject lefthand;
public GameObject righthand;
public Transform lchilds;
public Transform rchilds;
int score;

    private void Update()
  {             
        lchilds = new Transform[lefthand.transform.childCount];
        for (int i = 0; i < lefthand.transform.childCount; i++)
        {
            lchilds *= lefthand.transform.GetChild(i);* 

}

rchilds = new Transform[righthand.transform.childCount]
for (int i = 0; i < rcount; i++)
{
rchilds = righthand.transform.GetChild(i);
}
}

I’m making two arrays. Objects are added to these during the game. Let these be objects a, b, c. If a is added to the lists, there should be 10 scores, 20 scores if b is added, and 30 score increments if c is added. I could not find how to define this condition. How can I collect scores based on the object added with a conditional statement?
My method of adding objects to arrays is the same as in the load script.

I’m a bit confused by how you are defining a b and c, if it’s simply to check if its the same object then there.

lchilds = new Transform[lefthand.transform.childCount];
        for (int i = 0; i < lefthand.transform.childCount; i++)
        {
            lchilds *= lefthand.transform.GetChild(i);*

if (lchilds*.gameObject == a)*
score += 10;
if (lchilds*.gameObject == b)*
score += 20;
if (lchilds*.gameObject == c)*
score += 30;
}
If that fails and you want to isolate some ID from the object you can add a script called ID with a string id.
And say if (lchilds*.GetComponent<ID>().id == "A")*