The cells must be filled with integers in {1,2,...,12} and they must all be distinct. The numbers on the outside indicate the sum of the cells. For example, the 1st row's cells sum to 18, and the 2nd column's cells (8,12,11) sum to 31.
My Background: I have my university entrance exam tomorrow (computer sci). This type of question might come up in it. I only have a basic calculator in the test with me. I can solve these types of puzzles given enough time (in like an hour, which might be too long in an exam with lots of questions) using trial and error and some logic. I'm familiar with systems of equations and I know the concept of matrices. I've heard that using linear algebra, these puzzles can be solved on pen and paper more systematically than with trial and error. I'm wondering if I should learn that technique in case this type of puzzle comes up in the test.
Question:
Can I learn the linear algebra technique in a few hours, today? Or should I just go with my current technique and practice other topics as well today?