find the primary and secondary category and get the result out of the matrix
merge