I am new to game related problems so, in particular, I'm starting with symmetry game problems. In this case, I was trying to solve the following problem:
Two players, A and B, use a special calculator with number buttons without the zero and provided only with the "+" button as operation. Player A starts by pressing one number button, then pressing "+" and passing the calculator to B. Then B must choose a number that is either in the same column or the same row as the number picked by A in their previous turn (B cannot choose the same number A picked in their last turn). Then B presses "+", wich makes the calculator show the current sum of all the numbers chosen so far. In the next turn, A does the same thing. The first player that obtains a sum equal or larger than 31 by pressing the "+" button loses the game. Which one of the two players has a winning strategy?
I was thinking that maybe A would want to start with the greatest possible number, but in that case B would want to do the same. This however, doesn't seem to lead to anything interesting. As I stated before, I'm very new to this kind of problems and have no idea how to approach them. I have seen many examples but all of the solutions seem very specific to the problems. Do general strategies to approach this kind of problems exist? For example, could number theory be useful to solve this problem?
I would like to see some general hints not only for this problem but for general problems related to game strategies.

Here, we can capture the relevant state information using $(S, M)$ where $S$ represents the current Sum displayed on the calculator and $M$ represents the number button pressed / Move to get that sum.
Note for e.g. that $(30, x)$ for any allowable $x \in \{1, 2, 3, \dots 9\}$ represents a winning state for the player who just achieved that state (i.e. the next player has no option but to lose).
Assuming both players are trying to win and are aware of their best strategy, let us define a function $W(S, M)$ which takes the following values - $0$ if there are no winning moves for the next player (i.e. it is a winning state for the previous player). Similarly $W(S, M)=x >0$ would indicate the next player can press the number $x$ to get to a winning state. Of course the choices of $x$ are limited by the moves permitted on the calculator keypad, and there may be more than one move which may take the next player to a winning state, so for the sake of uniqueness we pick the maximum allowable such move to be $x$.
Now given $W(30, 1)=0$ represents a winning state for the previous player, we can think of which last moves could have led to that state, and from which previous states could we have such moves. Clearly the last move was $1$, so the last sum was $29$, and the possible states which allow a move of $1$ are hence $(29, 2), (29, 3), (29, 4), (29, 7)$. We can hence set $W$ value of all these states to $1$, which is the best move at this state for any next player for reaching a winning position.
We can follow this process for all the winning states $(30, 2), (30, 3), \dots$ thereby identifying values of the $W$ function. Further then we can progress to states of form $(29, x)$ and so on step by step. Clearly given the constraints on the moves and possible sums, this is perhaps better done with a program. Here is one written in python:
The output is a table of $W$ values:
from which it is evident that the first player can get to $(3, 3)$ or $(9, 9)$ in the first move, both of which have a $W$ value of $0$, so the next player has no winning moves. Whatever is played then, the first player can jump to another state with $W$ value $0$ because of the way we constructed the table, which gives the winning strategy.
P.S. The last row in the table does not mean much as there is no previous move when sum shown is $0$ at the start - except that it shows the only winning moves are $3$ or $9$.