@MBACRACKER
Not sure why you want to use the matrix here. Matrix is used in such problems where there each column in mutually exclusive to another column
and the same with the row.
for example if the problem were about two languages and people either study or don't study then we can make a matrix as follows
col1 = Study jap Col2 = doesn't study jap
row1 = Study french row3 = doesn't study french
as you have see col1,col2 and row1,row2 are always mutually exclusive.
This problem we don't have such a scenario of not studying or anything we are only discussing the number of students who study jap, french or both
so its better that you use the method that cans described.