I want to give total 100 if only primary skills are searched and selected.
And if primary_skills and one subskills_1 is searched and selected.
The total value should be distributed as 60 to primary_skills and 40 to subskills_1.
And if the three are searched and selected the total value should be distributed as
60 to primary_skills,
20 each to subskills_1 and subskills_2.
How to do this. Please help