Valid rules of inference work such that if their premise(s) hold as true, then their conclusion will also hold as true. A solution to such an exercise consists of a deduction that given the premises and the rules of inference of the system (and it's axioms if any... I'd guess your system doesn't have an axioms), the conclusion can get deduced. To reason about the solution I suggest keeping the following in mind as much as possible:
- Know the major rules of inference by heart or have them ready to look at on a separate sheet of paper.
- Know the axioms (if any) by heart. Or have them ready to look at constantly.
- Know the form of the desired conclusion and try to reason about what the form of the desired conclusion suggests.
- Know the form(s) of the premise(s) involved.
With your example you have a wff that qualifies as a negation. So, you have to use some rule of inference which gives you a negation of a letter somehow. What rules in your logical system enable you to do this? It also has only one letter or variable. Your premises have one variable, and two variables, for a total of three distinct variables or letters. One consists of a negation, and the other two consist of conditionals. What rules do you have that enable you to change negations or conditionals into something else? What rules do you have that have conditionals or negations in their set of premises?
For this particular example, if you use all the premises in your solution (the solution is a deduction), consequently, we can deduce that to get the conclusion we have to use some rule which has fewer variables in the conclusion than it does in the set of premises. We can only outline rules of inference, but even such outlines can end up very instructive. For instance, consider the outline of the following rule
Hypothetical Syllogism:
{($\alpha$ $\rightarrow$ $\beta$), ($\beta$ $\rightarrow$ $\gamma$)} $\vdash$ ($\alpha$ $\rightarrow$ $\gamma$)
It has two variables in its conclusion and three variables in its set of premises. Its premises and its conclusion all come as conditionals. So, it enables us to take two conditionals, where the conditionals have a total of three letters, and infer another conditional which has two letters.
As another example consider the following rule, which your system probably doesn't have at its basis:
($\alpha$ $\rightarrow$ $\beta$) $\vdash$ [($\gamma$ $\rightarrow$ $\alpha$) $\rightarrow$ ($\gamma$ $\rightarrow$ $\beta$)]
It has two variables in its premise, and three variables in its conclusion. Its premise comes as a conditional, and so does its conclusion. Consequently, if we want to increase the number of variables or deduce something with conditionals, this rule of inference might help.
With what you did you engaged in semantic reasoning. It isn't invalid. However, it does NOT use any rules of inference of a formal system. That said, it probably does come close to rules of inference in your system.