I see this is called a "non-verbal reasoning" test rather than a "mathematics test", so perhaps they expect you to use mere logic rather than the algebra I see written there.
This can be done by just thinking, with a lot of seeing and just a little writing. Look, for example, at the first row and the third column. The only difference in their content is changing a spade to a heart. What does that tell you about the relationship of a spade to a heart?
Look for another couple pairs that differ by one shape, and use those to find the value of that last column.
The downside of this method is that you can't tell if they were lying to you, and the sums were inconsistent (as we've seen in another problem just now). Solving completely lets you check that the problem is valid, by putting in all the values, and making sure every row and column works. Using shortcuts can be quicker if (a) they actually work, and you don't need the long systematic way after all, and (b) you completely trust the people who are testing you.